Skip to content

Commit 5ced08e

Browse files
authored
Use traditional sign for SquadsX wallet (#107)
* use traditional sign for SquadsX wallet
1 parent 5ff6b42 commit 5ced08e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "5.6.3",
5+
"version": "5.6.4-alpha.0",
66
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
77
}

packages/stream/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/stream",
3-
"version": "5.6.3",
3+
"version": "5.6.4-alpha.0",
44
"description": "JavaScript SDK to interact with Streamflow protocol.",
55
"main": "dist/index.js",
66
"homepage": "https://github.com/streamflow-finance/js-sdk/",

packages/stream/solana/utils.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,14 @@ export async function signAllTransactionWithRecipients(
193193
return { tx: t.tx, recipient: t.recipient };
194194
});
195195
} else if (isWallet) {
196-
const signedTxs = await sender.signAllTransactions(items.map((t) => t.tx));
196+
const signedTxs =
197+
sender.name === "SquadsX"
198+
? await Promise.all(
199+
items.map((t) => {
200+
return sender.signTransaction(t.tx);
201+
})
202+
)
203+
: await sender.signAllTransactions(items.map((t) => t.tx));
197204
return items.map((item, index) => ({
198205
...item,
199206
tx: signedTxs[index],

0 commit comments

Comments
 (0)