Fis solana signTransaction

This commit is contained in:
Ilja 2022-03-15 14:31:10 +02:00
parent 0c2f1350e1
commit 52f8c5d82c

View File

@ -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 }
}
}