@clonegod/ttd-bsc-common 1.0.14 → 1.0.16

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.
@@ -120,6 +120,7 @@ class AbstractEvmDexTrade extends dist_1.AbastrcatTrade {
120
120
  'transaction nonce is too low',
121
121
  'invalid transaction nonce',
122
122
  'insufficient funds',
123
+ 'sign bundle to get failure details',
123
124
  ];
124
125
  return nonceErrorKeywords.some(keyword => errorMessage.includes(keyword));
125
126
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "BSC common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",