@hashgraphonline/standards-sdk 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33454,10 +33454,7 @@ class BrowserHCSClient extends HCS10BaseClient {
|
|
|
33454
33454
|
async createTopic(memo, adminKey, submitKey) {
|
|
33455
33455
|
this.logger.info("Creating topic");
|
|
33456
33456
|
const { accountId, signer } = this.getAccountAndSigner();
|
|
33457
|
-
|
|
33458
|
-
if (adminKey) {
|
|
33459
|
-
transaction = transaction.setAutoRenewAccountId(accountId);
|
|
33460
|
-
}
|
|
33457
|
+
const transaction = new TopicCreateTransaction().setTopicMemo(memo);
|
|
33461
33458
|
const publicKey = await this.mirrorNode.getPublicKey(accountId);
|
|
33462
33459
|
if (adminKey && publicKey) {
|
|
33463
33460
|
transaction.setAdminKey(publicKey);
|
|
@@ -33466,7 +33463,10 @@ class BrowserHCSClient extends HCS10BaseClient {
|
|
|
33466
33463
|
if (submitKey && publicKey) {
|
|
33467
33464
|
transaction.setSubmitKey(publicKey);
|
|
33468
33465
|
}
|
|
33469
|
-
const transactionResponse = await this.hwc.executeTransactionWithErrorHandling(
|
|
33466
|
+
const transactionResponse = await this.hwc.executeTransactionWithErrorHandling(
|
|
33467
|
+
transaction,
|
|
33468
|
+
false
|
|
33469
|
+
);
|
|
33470
33470
|
const error = transactionResponse.error;
|
|
33471
33471
|
if (error) {
|
|
33472
33472
|
this.logger.error(error);
|