@haven-fi/solauto-sdk 1.0.261 → 1.0.262

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,7 +341,7 @@ class TransactionsManager {
341
341
  ]);
342
342
  if (newItemSets.length > 1) {
343
343
  itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
344
- this.statuses.splice(this.statusesStartIdx + currentIndex + 1, itemSets.length - 1, ...newItemSets.map((x, i) => ({
344
+ this.statuses.splice(this.statusesStartIdx + currentIndex, itemSets.length - 1, ...newItemSets.map(x => ({
345
345
  name: x.name(),
346
346
  attemptNum: 0,
347
347
  status: TransactionStatus.Queued,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.261",
3
+ "version": "1.0.262",
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",
@@ -532,9 +532,9 @@ export class TransactionsManager {
532
532
  ...newItemSets.slice(1)
533
533
  );
534
534
  this.statuses.splice(
535
- this.statusesStartIdx + currentIndex + 1,
535
+ this.statusesStartIdx + currentIndex,
536
536
  itemSets.length - 1,
537
- ...newItemSets.map((x, i) => ({
537
+ ...newItemSets.map(x => ({
538
538
  name: x.name(),
539
539
  attemptNum: 0,
540
540
  status: TransactionStatus.Queued,