From 4b4a12a39d23b680d2f7cc37e61ecfa8955e0f20 Mon Sep 17 00:00:00 2001 From: Yolley Date: Tue, 21 Nov 2023 22:06:08 +0900 Subject: [PATCH] revert squadsx hack --- lerna.json | 2 +- packages/stream/package.json | 2 +- packages/stream/solana/utils.ts | 9 +-------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/lerna.json b/lerna.json index 4f81ef95..395a6395 100644 --- a/lerna.json +++ b/lerna.json @@ -2,6 +2,6 @@ "packages": [ "packages/*" ], - "version": "5.6.4-alpha.0", + "version": "5.6.4", "$schema": "node_modules/lerna/schemas/lerna-schema.json" } \ No newline at end of file diff --git a/packages/stream/package.json b/packages/stream/package.json index 53fe2e83..2769fc5f 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/stream", - "version": "5.6.4-alpha.0", + "version": "5.6.4", "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/utils.ts b/packages/stream/solana/utils.ts index 1fea5282..7230af74 100644 --- a/packages/stream/solana/utils.ts +++ b/packages/stream/solana/utils.ts @@ -193,14 +193,7 @@ export async function signAllTransactionWithRecipients( return { tx: t.tx, recipient: t.recipient }; }); } else if (isWallet) { - const signedTxs = - sender.name === "SquadsX" - ? await Promise.all( - items.map((t) => { - return sender.signTransaction(t.tx); - }) - ) - : await sender.signAllTransactions(items.map((t) => t.tx)); + const signedTxs = await sender.signAllTransactions(items.map((t) => t.tx)); return items.map((item, index) => ({ ...item, tx: signedTxs[index],