diff --git a/wallets/react-wallet-v2/src/lib/SolanaLib.ts b/wallets/react-wallet-v2/src/lib/SolanaLib.ts index 9abc514..ce999aa 100644 --- a/wallets/react-wallet-v2/src/lib/SolanaLib.ts +++ b/wallets/react-wallet-v2/src/lib/SolanaLib.ts @@ -58,8 +58,12 @@ export default class SolanaLib { await tx.sign(this.keypair) - const { signature } = tx.signatures[tx.signatures.length - 1] + if (!tx.signature) { + throw new Error('Missing signature!') + } - return { signature } + const bs58Signature = bs58.encode(tx.signature) + + return { signature: bs58Signature } } }