Skip to content

Commit

Permalink
fix: ata multiple position error
Browse files Browse the repository at this point in the history
  • Loading branch information
00xSam committed Jan 9, 2025
1 parent a590d77 commit 768879b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts-client/src/dlmm/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
TOKEN_PROGRAM_ID,
TokenAccountNotFoundError,
TokenInvalidAccountOwnerError,
createAssociatedTokenAccountIdempotentInstruction,
createAssociatedTokenAccountInstruction,
createCloseAccountInstruction,
getAccount,
Expand Down Expand Up @@ -111,7 +112,7 @@ export const getOrCreateATAInstruction = async (
e instanceof TokenAccountNotFoundError ||
e instanceof TokenInvalidAccountOwnerError
) {
const ix = createAssociatedTokenAccountInstruction(
const ix = createAssociatedTokenAccountIdempotentInstruction(
payer,
toAccount,
owner,
Expand Down

0 comments on commit 768879b

Please sign in to comment.