Skip to content

Commit 2e33da8

Browse files
fix(typescript-client): pass bigint amount to wrap() for 0.23 SDK
Made-with: Cursor
1 parent 135477e commit 2e33da8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

typescript-client/actions/wrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const payer = Keypair.fromSecretKey(
5656
payer.publicKey
5757
);
5858

59-
const tx = await wrap(rpc, payer, splAta, lightTokenAta, payer, mint, 500);
59+
const tx = await wrap(rpc, payer, splAta, lightTokenAta, payer, mint, 500n);
6060

6161
console.log("Tx:", tx);
6262
})();

typescript-client/instructions/wrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const payer = Keypair.fromSecretKey(
7474
lightTokenAta,
7575
payer.publicKey,
7676
mint,
77-
500,
77+
500n,
7878
splInterfaceInfo,
7979
9,
8080
payer.publicKey

0 commit comments

Comments
 (0)