@haven-fi/solauto-sdk 1.0.268 → 1.0.269

Sign up to get free protection for your applications and to get access to all the features.
@@ -340,7 +340,7 @@ class TransactionsManager {
340
340
  ...itemSets.slice(currentIndex + 1).flatMap((set) => set.items),
341
341
  ]);
342
342
  if (newItemSets.length > 1) {
343
- itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
343
+ itemSets.splice(currentIndex, itemSets.length - currentIndex, ...newItemSets);
344
344
  // const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
345
345
  // this.statuses.splice(
346
346
  // startOfQueuedStatuses,
@@ -351,7 +351,7 @@ class TransactionsManager {
351
351
  // status: TransactionStatus.Queued,
352
352
  // }))
353
353
  // );
354
- this.updateStatusForSets(newItemSets.slice(1));
354
+ this.updateStatusForSets(newItemSets);
355
355
  }
356
356
  return newItemSets[0];
357
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.268",
3
+ "version": "1.0.269",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -527,9 +527,9 @@ export class TransactionsManager {
527
527
 
528
528
  if (newItemSets.length > 1) {
529
529
  itemSets.splice(
530
- currentIndex + 1,
531
- itemSets.length - currentIndex - 1,
532
- ...newItemSets.slice(1)
530
+ currentIndex,
531
+ itemSets.length - currentIndex,
532
+ ...newItemSets
533
533
  );
534
534
  // const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
535
535
  // this.statuses.splice(
@@ -541,7 +541,7 @@ export class TransactionsManager {
541
541
  // status: TransactionStatus.Queued,
542
542
  // }))
543
543
  // );
544
- this.updateStatusForSets(newItemSets.slice(1));
544
+ this.updateStatusForSets(newItemSets);
545
545
  }
546
546
 
547
547
  return newItemSets[0];