@clonegod/ttd-bsc-common 1.0.14 → 1.0.15
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.
|
@@ -75,6 +75,9 @@ class TransactionSender {
|
|
|
75
75
|
(0, dist_1.log_info)(`Transaction sending failed`, { provider: provider.name, order_trace_id, error: error.message });
|
|
76
76
|
}
|
|
77
77
|
})));
|
|
78
|
+
if (errors.some(error => error.includes('bundle already exist') || error.includes('already known'))) {
|
|
79
|
+
return results;
|
|
80
|
+
}
|
|
78
81
|
if (results.length === 0 || errors.length > 0) {
|
|
79
82
|
throw new Error(`!!!!!! Some RPC providers failed to send transactions: ${JSON.stringify(errors)}`);
|
|
80
83
|
}
|