Skip to content

Commit 12ca779

Browse files
committed
Merge branch 'main' into 00915-tck-c-implement-json-rpc-method-endpoint-for-tokenwipetransaction
2 parents aece6cf + 5a3ef00 commit 12ca779

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sdk/main/src/TopicCreateTransaction.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ void TopicCreateTransaction::addToBody(proto::TransactionBody& body) const
127127
{
128128
body.set_allocated_consensuscreatetopic(build());
129129

130-
if (body.has_transactionid() && !body.consensuscreatetopic().has_autorenewaccount())
130+
if (body.has_transactionid() && !body.consensuscreatetopic().has_autorenewaccount() &&
131+
body.consensuscreatetopic().has_adminkey())
131132
{
132133
std::unique_ptr<proto::AccountID> accountId = std::make_unique<proto::AccountID>(body.transactionid().accountid());
133134
body.mutable_consensuscreatetopic()->set_allocated_autorenewaccount(accountId.release());

0 commit comments

Comments
 (0)