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 c3a2391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## @meteora-ag/dlmm [1.3.8] - PR #144

### Fixed

- Fix `getOrCreateATAInstruction` to use `createAssociatedTokenAccountIdempotentInstruction`

## @meteora-ag/dlmm [1.3.7] - PR #143

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion ts-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meteora-ag/dlmm",
"version": "1.3.7",
"version": "1.3.8",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
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 c3a2391

Please sign in to comment.