@ethereansos/interfaces-core 0.4.137 → 0.4.138

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.
package/dist/index.cjs.js CHANGED
@@ -23902,6 +23902,7 @@ function sendAsync(_x6, _x7) {
23902
23902
  function _sendAsync() {
23903
23903
  _sendAsync = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(provider, method) {
23904
23904
  var params,
23905
+ message,
23905
23906
  instrumentedProvider,
23906
23907
  _args4 = arguments;
23907
23908
  return regeneratorRuntime.wrap(function _callee4$(_context4) {
@@ -23919,27 +23920,37 @@ function _sendAsync() {
23919
23920
  case 7:
23920
23921
  _context4.prev = 7;
23921
23922
  _context4.t0 = _context4["catch"](1);
23922
- _context4.next = 11;
23923
+ message = (_context4.t0.stack || _context4.t0.message || _context4.t0.toString()).toLowerCase();
23924
+
23925
+ if (!(message.indexOf('execution reverted') !== -1)) {
23926
+ _context4.next = 12;
23927
+ break;
23928
+ }
23929
+
23930
+ throw _context4.t0;
23931
+
23932
+ case 12:
23933
+ _context4.next = 14;
23923
23934
  return instrumentProvider(provider, method);
23924
23935
 
23925
- case 11:
23936
+ case 14:
23926
23937
  instrumentedProvider = _context4.sent;
23927
23938
 
23928
23939
  if (!(provider === instrumentedProvider)) {
23929
- _context4.next = 14;
23940
+ _context4.next = 17;
23930
23941
  break;
23931
23942
  }
23932
23943
 
23933
23944
  throw _context4.t0;
23934
23945
 
23935
- case 14:
23936
- _context4.next = 16;
23946
+ case 17:
23947
+ _context4.next = 19;
23937
23948
  return sendAsyncInternal(instrumentedProvider, method, params);
23938
23949
 
23939
- case 16:
23950
+ case 19:
23940
23951
  return _context4.abrupt("return", _context4.sent);
23941
23952
 
23942
- case 17:
23953
+ case 20:
23943
23954
  case "end":
23944
23955
  return _context4.stop();
23945
23956
  }