From 959443b9efbc3c748ae3048cc0fa1cd0088d553b Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Tue, 10 Dec 2024 16:03:21 +0800 Subject: [PATCH] fix --- .../default-solana-adapter/src/walletStandardHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/adapters/default-solana-adapter/src/walletStandardHandler.ts b/packages/adapters/default-solana-adapter/src/walletStandardHandler.ts index e36dfc3f6..1ba85dc01 100644 --- a/packages/adapters/default-solana-adapter/src/walletStandardHandler.ts +++ b/packages/adapters/default-solana-adapter/src/walletStandardHandler.ts @@ -47,7 +47,7 @@ export class WalletStandardProviderHandler extends SafeEventEmitter implements I async signMessage(message: Uint8Array): Promise<{ signature: Uint8Array; publicKey: BN }> { const account = this.currentAccount; const signature = await this.wallet.features[SolanaSignMessage].signMessage({ account, message }); - return { signature: signature[0].signature, publicKey: new BN(account.publicKey) }; + return { signature: signature[0].signature, publicKey: new BN(Buffer.from(account.publicKey)) }; } async signTransaction(transaction: T): Promise {