@haven-fi/solauto-sdk 1.0.336 → 1.0.337
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.
@@ -355,12 +355,12 @@ class TransactionsManager {
|
|
355
355
|
txSigs = await (0, jitoUtils_1.sendJitoBundledTransactions)(this.txHandler.umi, this.txHandler.connection, this.txHandler.signer, transactions, this.txType, this.priorityFeeSetting);
|
356
356
|
}
|
357
357
|
catch (e) {
|
358
|
-
error = e
|
358
|
+
error = e;
|
359
359
|
}
|
360
360
|
if (error || !Boolean(txSigs) || txSigs?.length === 0) {
|
361
|
-
this.updateStatusForSets(itemSets, TransactionStatus.Failed, attemptNum, txSigs, true, error);
|
361
|
+
this.updateStatusForSets(itemSets, TransactionStatus.Failed, attemptNum, txSigs, true, error?.message);
|
362
362
|
if (error) {
|
363
|
-
throw
|
363
|
+
throw error ? error : new Error("Unknown error");
|
364
364
|
}
|
365
365
|
}
|
366
366
|
this.updateStatusForSets(itemSets, TransactionStatus.Successful, attemptNum, txSigs);
|
package/package.json
CHANGED
@@ -554,7 +554,7 @@ export class TransactionsManager {
|
|
554
554
|
);
|
555
555
|
|
556
556
|
let txSigs: string[] | undefined;
|
557
|
-
let error:
|
557
|
+
let error: Error | undefined;
|
558
558
|
try {
|
559
559
|
txSigs = await sendJitoBundledTransactions(
|
560
560
|
this.txHandler.umi,
|
@@ -565,7 +565,7 @@ export class TransactionsManager {
|
|
565
565
|
this.priorityFeeSetting
|
566
566
|
);
|
567
567
|
} catch (e: any) {
|
568
|
-
error = e
|
568
|
+
error = e as Error;
|
569
569
|
}
|
570
570
|
|
571
571
|
if (error || !Boolean(txSigs) || txSigs?.length === 0) {
|
@@ -575,10 +575,10 @@ export class TransactionsManager {
|
|
575
575
|
attemptNum,
|
576
576
|
txSigs,
|
577
577
|
true,
|
578
|
-
error
|
578
|
+
error?.message
|
579
579
|
);
|
580
580
|
if (error) {
|
581
|
-
throw
|
581
|
+
throw error ? error : new Error("Unknown error");
|
582
582
|
}
|
583
583
|
}
|
584
584
|
|