@haven-fi/solauto-sdk 1.0.266 → 1.0.267

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -341,13 +341,17 @@ class TransactionsManager {
341
341
  ]);
342
342
  if (newItemSets.length > 1) {
343
343
  itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
344
- const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
345
- this.statuses.splice(startOfQueuedStatuses, this.statuses.length - startOfQueuedStatuses, ...newItemSets.map(x => ({
346
- name: x.name(),
347
- attemptNum: 0,
348
- status: TransactionStatus.Queued,
349
- })));
350
- // this.updateStatusForSets(newItemSets.slice(1));
344
+ // const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
345
+ // this.statuses.splice(
346
+ // startOfQueuedStatuses,
347
+ // this.statuses.length - startOfQueuedStatuses,
348
+ // ...newItemSets.map(x => ({
349
+ // name: x.name(),
350
+ // attemptNum: 0,
351
+ // status: TransactionStatus.Queued,
352
+ // }))
353
+ // );
354
+ this.updateStatusForSets(newItemSets);
351
355
  }
352
356
  return newItemSets[0];
353
357
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.266",
3
+ "version": "1.0.267",
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",
@@ -531,17 +531,17 @@ export class TransactionsManager {
531
531
  itemSets.length - currentIndex - 1,
532
532
  ...newItemSets.slice(1)
533
533
  );
534
- const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
535
- this.statuses.splice(
536
- startOfQueuedStatuses,
537
- this.statuses.length - startOfQueuedStatuses,
538
- ...newItemSets.map(x => ({
539
- name: x.name(),
540
- attemptNum: 0,
541
- status: TransactionStatus.Queued,
542
- }))
543
- );
544
- // this.updateStatusForSets(newItemSets.slice(1));
534
+ // const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
535
+ // this.statuses.splice(
536
+ // startOfQueuedStatuses,
537
+ // this.statuses.length - startOfQueuedStatuses,
538
+ // ...newItemSets.map(x => ({
539
+ // name: x.name(),
540
+ // attemptNum: 0,
541
+ // status: TransactionStatus.Queued,
542
+ // }))
543
+ // );
544
+ this.updateStatusForSets(newItemSets);
545
545
  }
546
546
 
547
547
  return newItemSets[0];