20TEST(TransactionsPermissionedDomainDeleteTests, BuilderSettersRoundTrip)
23 auto const [publicKey, secretKey] =
43 auto tx = builder.build(publicKey, secretKey);
46 EXPECT_TRUE(tx.validate(reason)) << reason;
49 EXPECT_FALSE(tx.getSigningPubKey().empty());
50 EXPECT_TRUE(tx.hasTxnSignature());
53 EXPECT_EQ(tx.getAccount(), accountValue);
54 EXPECT_EQ(tx.getSequence(), sequenceValue);
55 EXPECT_EQ(tx.getFee(), feeValue);
59 auto const& expected = domainIDValue;
60 auto const actual = tx.getDomainID();
69TEST(TransactionsPermissionedDomainDeleteTests, BuilderFromStTxRoundTrip)
72 auto const [publicKey, secretKey] =
92 auto initialTx = initialBuilder.build(publicKey, secretKey);
97 auto rebuiltTx = builderFromTx.
build(publicKey, secretKey);
100 EXPECT_TRUE(rebuiltTx.validate(reason)) << reason;
103 EXPECT_EQ(rebuiltTx.getAccount(), accountValue);
104 EXPECT_EQ(rebuiltTx.getSequence(), sequenceValue);
105 EXPECT_EQ(rebuiltTx.getFee(), feeValue);
109 auto const& expected = domainIDValue;
110 auto const actual = rebuiltTx.getDomainID();
Builder for PermissionedDomainDelete transactions.
PermissionedDomainDelete build(PublicKey const &publicKey, SecretKey const &secretKey)
Build and return the PermissionedDomainDelete wrapper.
Transaction: PermissionedDomainDelete.