@haven-fi/solauto-sdk 1.0.267 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.267",
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(