Skip to content

Commit

Permalink
fix: shift instead of pop for createMultipleSequential (#229)
Browse files Browse the repository at this point in the history
* fix: pop instead of shift

* version bumps
  • Loading branch information
joeymeere authored Nov 14, 2024
1 parent 1d52555 commit 03e0a53
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/common",
"version": "7.0.1",
"version": "7.0.2",
"description": "Common utilities and types used by streamflow packages.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/distributor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/distributor",
"version": "7.0.1",
"version": "7.0.2",
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/eslint-config",
"version": "7.0.1",
"version": "7.0.2",
"license": "ISC",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/staking/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/staking",
"version": "7.0.1",
"version": "7.0.2",
"description": "JavaScript SDK to interact with Streamflow Staking protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/esm/index.js",
Expand Down
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": "7.0.1",
"version": "7.0.2",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "./dist/esm/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/stream/solana/StreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ export class SolanaStreamClient extends BaseStreamClient {
/**
* Creates multiple stream/vesting contracts, and send all transactions sequentially.
* All fees are paid by sender (escrow metadata account rent, escrow token account rent, recipient's associated token account rent, Streamflow's service fee).
* In most cases, createMultiple should be used instead.
*/
public async createMultipleSequential(
data: ICreateMultipleStreamData,
Expand Down Expand Up @@ -839,7 +840,7 @@ export class SolanaStreamClient extends BaseStreamClient {
const signedBatch: BatchItem[] = await signAllTransactionWithRecipients(sender, batch);

if (prepareInstructions.length > 0) {
const prepareTx = signedBatch.pop();
const prepareTx = signedBatch.shift();
await sendAndConfirmStreamRawTransaction(
this.connection,
prepareTx!,
Expand Down

0 comments on commit 03e0a53

Please sign in to comment.