@hashgraphonline/standards-sdk 0.0.22 → 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.
@@ -4,7 +4,6 @@ import { Logger, LogLevel } from '../utils/logger';
4
4
  import { RetrievedInscriptionResult } from '@kiloscribe/inscription-sdk';
5
5
  import { HCS10BaseClient } from './base-client';
6
6
  import { AgentConfig, NetworkType } from './types.d';
7
- import { DAppSigner } from '@hashgraph/hedera-wallet-connect';
8
7
  export type BrowserHCSClientConfig = {
9
8
  network: 'mainnet' | 'testnet';
10
9
  hwc: HashinalsWalletConnectSDK;
@@ -91,7 +90,7 @@ export declare class BrowserHCSClient extends HCS10BaseClient {
91
90
  inscribeFile(buffer: Buffer, fileName: string): Promise<RetrievedInscriptionResult>;
92
91
  getAccountAndSigner(): {
93
92
  accountId: string;
94
- signer: DAppSigner;
93
+ signer: any;
95
94
  };
96
95
  /**
97
96
  * Inscribes a profile picture file to the Hedera network
@@ -33452,25 +33452,13 @@ class BrowserHCSClient extends HCS10BaseClient {
33452
33452
  }
33453
33453
  }
33454
33454
  async createTopic(memo, adminKey, submitKey) {
33455
+ this.logger.info("Creating topic");
33455
33456
  const { accountId, signer } = this.getAccountAndSigner();
33456
- this.logger.info(`Creating topic for ${accountId} with memo ${memo}`);
33457
- let transaction = new TopicCreateTransaction().setTopicMemo(memo);
33458
- if (adminKey) {
33459
- transaction = transaction.setAutoRenewAccountId(
33460
- AccountId.fromString(accountId)
33461
- );
33462
- }
33457
+ const transaction = new TopicCreateTransaction().setTopicMemo(memo);
33463
33458
  const publicKey = await this.mirrorNode.getPublicKey(accountId);
33464
- transaction._setOperatorWith(
33465
- AccountId.fromString(accountId),
33466
- publicKey,
33467
- async (message) => {
33468
- const signed = await signer.sign([message]);
33469
- return new Uint8Array(signed[0].signature);
33470
- }
33471
- );
33472
33459
  if (adminKey && publicKey) {
33473
33460
  transaction.setAdminKey(publicKey);
33461
+ transaction.setAutoRenewAccountId(accountId);
33474
33462
  }
33475
33463
  if (submitKey && publicKey) {
33476
33464
  transaction.setSubmitKey(publicKey);