@ethereansos/interfaces-core 0.4.125 → 0.4.126

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
@@ -23780,23 +23780,25 @@ function _sendAsync() {
23780
23780
  provider = inputProvider;
23781
23781
 
23782
23782
  if (!(method !== 'eth_chainId')) {
23783
- _context2.next = 7;
23783
+ _context2.next = 9;
23784
23784
  break;
23785
23785
  }
23786
23786
 
23787
- _context2.next = 4;
23787
+ _context2.t0 = parseInt;
23788
+ _context2.next = 5;
23788
23789
  return sendAsync(provider, 'eth_chainId');
23789
23790
 
23790
- case 4:
23791
- chainId = _context2.sent;
23791
+ case 5:
23792
+ _context2.t1 = _context2.sent;
23793
+ chainId = (0, _context2.t0)(_context2.t1);
23792
23794
  _ref = sendAsync.context || {
23793
23795
  chainProvider: {}
23794
23796
  }, chainProvider = _ref.chainProvider;
23795
23797
  provider = chainId !== 1 && chainProvider[chainId] ? instrumentedProviders[chainId] = instrumentedProviders[chainId] || new Web3__default["default"].providers.HttpProvider(chainProvider[chainId]) : provider;
23796
23798
 
23797
- case 7:
23799
+ case 9:
23798
23800
  params = Array.prototype.slice.call(_args2).slice(2) || [];
23799
- _context2.next = 10;
23801
+ _context2.next = 12;
23800
23802
  return new Promise( /*#__PURE__*/function () {
23801
23803
  var _ref2 = _asyncToGenerator$1( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ok, ko) {
23802
23804
  return regeneratorRuntime.wrap(function _callee$(_context) {
@@ -23836,10 +23838,10 @@ function _sendAsync() {
23836
23838
  };
23837
23839
  }());
23838
23840
 
23839
- case 10:
23841
+ case 12:
23840
23842
  return _context2.abrupt("return", _context2.sent);
23841
23843
 
23842
- case 11:
23844
+ case 13:
23843
23845
  case "end":
23844
23846
  return _context2.stop();
23845
23847
  }