Skip to content

Commit

Permalink
bigint for createExecuteInstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jan 11, 2024
1 parent c6f73d3 commit f13ea3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions token/js/src/extensions/transferHook/instructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -271,7 +271,7 @@ export async function addExtraAccountMetasForExecute(
destination,
owner,
validateStatePubkey,
amount
BigInt(amount)
);

for (const extraAccountMeta of validateStateData) {
Expand Down

0 comments on commit f13ea3c

Please sign in to comment.