@haven-fi/solauto-sdk 1.0.263 → 1.0.264

Sign up to get free protection for your applications and to get access to all the features.
@@ -342,7 +342,7 @@ class TransactionsManager {
342
342
  if (newItemSets.length > 1) {
343
343
  itemSets.splice(currentIndex + 1, itemSets.length - currentIndex - 1, ...newItemSets.slice(1));
344
344
  const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
345
- this.statuses.splice(startOfQueuedStatuses, this.statuses.length - startOfQueuedStatuses, ...newItemSets.map(x => ({
345
+ this.statuses.splice(startOfQueuedStatuses + 1, this.statuses.length - startOfQueuedStatuses - 1, ...newItemSets.map(x => ({
346
346
  name: x.name(),
347
347
  attemptNum: 0,
348
348
  status: TransactionStatus.Queued,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.263",
3
+ "version": "1.0.264",
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",
@@ -533,8 +533,8 @@ export class TransactionsManager {
533
533
  );
534
534
  const startOfQueuedStatuses = this.statuses.findIndex(x => x.status === TransactionStatus.Queued);
535
535
  this.statuses.splice(
536
- startOfQueuedStatuses,
537
- this.statuses.length - startOfQueuedStatuses,
536
+ startOfQueuedStatuses + 1,
537
+ this.statuses.length - startOfQueuedStatuses - 1,
538
538
  ...newItemSets.map(x => ({
539
539
  name: x.name(),
540
540
  attemptNum: 0,