Skip to content

Commit

Permalink
Use traditional sign for SquadsX wallet (#107)
Browse files Browse the repository at this point in the history
* use traditional sign for SquadsX wallet
  • Loading branch information
Yolley authored Nov 21, 2023
1 parent 5ff6b42 commit 5ced08e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "5.6.3",
"version": "5.6.4-alpha.0",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion packages/stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/stream",
"version": "5.6.3",
"version": "5.6.4-alpha.0",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"main": "dist/index.js",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
Expand Down
9 changes: 8 additions & 1 deletion packages/stream/solana/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,14 @@ export async function signAllTransactionWithRecipients(
return { tx: t.tx, recipient: t.recipient };
});
} else if (isWallet) {
const signedTxs = await sender.signAllTransactions(items.map((t) => t.tx));
const signedTxs =
sender.name === "SquadsX"
? await Promise.all(
items.map((t) => {
return sender.signTransaction(t.tx);
})
)
: await sender.signAllTransactions(items.map((t) => t.tx));
return items.map((item, index) => ({
...item,
tx: signedTxs[index],
Expand Down

0 comments on commit 5ced08e

Please sign in to comment.