@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 +18 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -23890,6 +23890,7 @@ function sendAsync(_x6, _x7) {
|
|
23890
23890
|
function _sendAsync() {
|
23891
23891
|
_sendAsync = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(provider, method) {
|
23892
23892
|
var params,
|
23893
|
+
message,
|
23893
23894
|
instrumentedProvider,
|
23894
23895
|
_args4 = arguments;
|
23895
23896
|
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
@@ -23907,27 +23908,37 @@ function _sendAsync() {
|
|
23907
23908
|
case 7:
|
23908
23909
|
_context4.prev = 7;
|
23909
23910
|
_context4.t0 = _context4["catch"](1);
|
23910
|
-
_context4.
|
23911
|
+
message = (_context4.t0.stack || _context4.t0.message || _context4.t0.toString()).toLowerCase();
|
23912
|
+
|
23913
|
+
if (!(message.indexOf('execution reverted') !== -1)) {
|
23914
|
+
_context4.next = 12;
|
23915
|
+
break;
|
23916
|
+
}
|
23917
|
+
|
23918
|
+
throw _context4.t0;
|
23919
|
+
|
23920
|
+
case 12:
|
23921
|
+
_context4.next = 14;
|
23911
23922
|
return instrumentProvider(provider, method);
|
23912
23923
|
|
23913
|
-
case
|
23924
|
+
case 14:
|
23914
23925
|
instrumentedProvider = _context4.sent;
|
23915
23926
|
|
23916
23927
|
if (!(provider === instrumentedProvider)) {
|
23917
|
-
_context4.next =
|
23928
|
+
_context4.next = 17;
|
23918
23929
|
break;
|
23919
23930
|
}
|
23920
23931
|
|
23921
23932
|
throw _context4.t0;
|
23922
23933
|
|
23923
|
-
case
|
23924
|
-
_context4.next =
|
23934
|
+
case 17:
|
23935
|
+
_context4.next = 19;
|
23925
23936
|
return sendAsyncInternal(instrumentedProvider, method, params);
|
23926
23937
|
|
23927
|
-
case
|
23938
|
+
case 19:
|
23928
23939
|
return _context4.abrupt("return", _context4.sent);
|
23929
23940
|
|
23930
|
-
case
|
23941
|
+
case 20:
|
23931
23942
|
case "end":
|
23932
23943
|
return _context4.stop();
|
23933
23944
|
}
|