From f13ea3ce74b647a9b39d874a4172168a50cd7300 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 11 Jan 2024 10:18:30 -0600 Subject: [PATCH] bigint for `createExecuteInstruction` --- token/js/src/extensions/transferHook/instructions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/token/js/src/extensions/transferHook/instructions.ts b/token/js/src/extensions/transferHook/instructions.ts index 07bb80e2ed0..7ddb96fe37f 100644 --- a/token/js/src/extensions/transferHook/instructions.ts +++ b/token/js/src/extensions/transferHook/instructions.ts @@ -212,7 +212,7 @@ export function createExecuteInstruction( destination: PublicKey, owner: PublicKey, validateStatePubkey: PublicKey, - amount: number | bigint + amount: bigint ): TransactionInstruction { const keys = [source, mint, destination, owner, validateStatePubkey].map((pubkey) => ({ pubkey, @@ -271,7 +271,7 @@ export async function addExtraAccountMetasForExecute( destination, owner, validateStatePubkey, - amount + BigInt(amount) ); for (const extraAccountMeta of validateStateData) {