We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aece6cf + 5a3ef00 commit 12ca779Copy full SHA for 12ca779
src/sdk/main/src/TopicCreateTransaction.cc
@@ -127,7 +127,8 @@ void TopicCreateTransaction::addToBody(proto::TransactionBody& body) const
127
{
128
body.set_allocated_consensuscreatetopic(build());
129
130
- if (body.has_transactionid() && !body.consensuscreatetopic().has_autorenewaccount())
+ if (body.has_transactionid() && !body.consensuscreatetopic().has_autorenewaccount() &&
131
+ body.consensuscreatetopic().has_adminkey())
132
133
std::unique_ptr<proto::AccountID> accountId = std::make_unique<proto::AccountID>(body.transactionid().accountid());
134
body.mutable_consensuscreatetopic()->set_allocated_autorenewaccount(accountId.release());
0 commit comments