From bbd68ea8fa88b935fdee2aca406add9bcb584a2d Mon Sep 17 00:00:00 2001 From: Yolley Date: Wed, 27 Dec 2023 23:18:06 +0900 Subject: [PATCH] fix accounts order in createATA instruction (#120) --- lerna.json | 2 +- package-lock.json | 2 +- packages/stream/package.json | 2 +- packages/stream/solana/StreamClient.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lerna.json b/lerna.json index 7cc89f43..cbc58991 100644 --- a/lerna.json +++ b/lerna.json @@ -2,6 +2,6 @@ "packages": [ "packages/*" ], - "version": "5.9.2", + "version": "5.9.3", "$schema": "node_modules/lerna/schemas/lerna-schema.json" } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7753e788..4a026b58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22169,7 +22169,7 @@ }, "packages/stream": { "name": "@streamflow/stream", - "version": "5.9.2", + "version": "5.9.3", "dependencies": { "@manahippo/aptos-wallet-adapter": "1.0.6", "@mysten/sui.js": "^0.40.0", diff --git a/packages/stream/package.json b/packages/stream/package.json index d3518bc5..de76aa54 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/stream", - "version": "5.9.2", + "version": "5.9.3", "description": "JavaScript SDK to interact with Streamflow protocol.", "main": "dist/index.js", "homepage": "https://github.com/streamflow-finance/js-sdk/", diff --git a/packages/stream/solana/StreamClient.ts b/packages/stream/solana/StreamClient.ts index 4217a885..f03b2a7b 100644 --- a/packages/stream/solana/StreamClient.ts +++ b/packages/stream/solana/StreamClient.ts @@ -979,8 +979,8 @@ export default class SolanaStreamClient extends BaseStreamClient { ixs.push( createAssociatedTokenAccountInstruction( invoker.publicKey!, - accountArrays[i][0], accountArrays[i][1], + accountArrays[i][0], data.mint, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID