diff --git a/ts-client/src/dlmm/helpers/index.ts b/ts-client/src/dlmm/helpers/index.ts index 542a6bab..bb674bb6 100644 --- a/ts-client/src/dlmm/helpers/index.ts +++ b/ts-client/src/dlmm/helpers/index.ts @@ -4,6 +4,7 @@ import { TOKEN_PROGRAM_ID, TokenAccountNotFoundError, TokenInvalidAccountOwnerError, + createAssociatedTokenAccountIdempotentInstruction, createAssociatedTokenAccountInstruction, createCloseAccountInstruction, getAccount, @@ -111,7 +112,7 @@ export const getOrCreateATAInstruction = async ( e instanceof TokenAccountNotFoundError || e instanceof TokenInvalidAccountOwnerError ) { - const ix = createAssociatedTokenAccountInstruction( + const ix = createAssociatedTokenAccountIdempotentInstruction( payer, toAccount, owner,