Skip to content

Commit

Permalink
fix: pass correct tokenProgramId (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-humandone authored Jul 5, 2024
1 parent 3f565b5 commit 8578a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kamino-sdk/src/utils/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const createAtaIfMissingIx = async (
owner: PublicKey,
programId: PublicKey
): Promise<TransactionInstruction | undefined> => {
const ata = getAssociatedTokenAddress(mint, owner);
const ata = getAssociatedTokenAddress(mint, owner, true, programId);
const doesAtaExist = Boolean(await checkIfAccountExists(connection, ata));
const createIxn = !doesAtaExist
? createAssociatedTokenAccountInstruction(owner, ata, owner, mint, programId)
Expand Down

0 comments on commit 8578a5b

Please sign in to comment.