Skip to content

Commit

Permalink
fixed binding of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
programming-runner committed Jan 12, 2024
1 parent 55e51fa commit 374da96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ts/sdk/cli/ledgerWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export async function getLedgerWallet(url = ''): Promise<Wallet> {
return {
payer: undefined as unknown as Keypair, // Doesn't appear to break things
publicKey: publicKey,
signTransaction: wallet.signTransaction,
signVersionedTransaction: wallet.signTransaction,
signAllTransactions: wallet.signAllTransactions,
signAllVersionedTransactions: wallet.signAllTransactions,
signTransaction: wallet.signTransaction.bind(wallet),
signVersionedTransaction: wallet.signTransaction.bind(wallet),
signAllTransactions: wallet.signAllTransactions.bind(wallet),
signAllVersionedTransactions: wallet.signAllTransactions.bind(wallet),
};
}

0 comments on commit 374da96

Please sign in to comment.