Skip to content

Commit ff27318

Browse files
committed
fix: wrong encoding - should be base58 instead of base64
1 parent 41a854b commit ff27318

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/wrapped-keys-lit-actions/src/lib/solana/signTransactionWithSolanaEncryptedKey.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const {
66
} = require('@solana/web3.js');
77

88
const { removeSaltFromDecryptedKey } = require('../utils');
9+
const { bs58 } = require('bs58');
910

1011
/**
1112
*
@@ -80,7 +81,7 @@ const { removeSaltFromDecryptedKey } = require('../utils');
8081
);
8182

8283
transaction.sign(solanaKeyPair);
83-
const signature = transaction.signature.toString('base64');
84+
const signature = bs58.encode(transaction.signature);
8485

8586
if (broadcast) {
8687
const solanaConnection = new Connection(

0 commit comments

Comments
 (0)