@ethereansos/interfaces-core 0.4.121 → 0.4.122

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -23784,27 +23784,27 @@ function _sendAsync() {
23784
23784
  break;
23785
23785
  }
23786
23786
 
23787
- _context2.t0 = provider.chainId;
23787
+ _context2.t0 = parseInt;
23788
+ _context2.t1 = provider.chainId;
23788
23789
 
23789
- if (_context2.t0) {
23790
- _context2.next = 9;
23790
+ if (_context2.t1) {
23791
+ _context2.next = 8;
23791
23792
  break;
23792
23793
  }
23793
23794
 
23794
- _context2.t1 = parseInt;
23795
23795
  _context2.next = 7;
23796
23796
  return sendAsync(provider, 'eth_chainId');
23797
23797
 
23798
23798
  case 7:
23799
- _context2.t2 = _context2.sent;
23800
- _context2.t0 = (0, _context2.t1)(_context2.t2);
23799
+ _context2.t1 = _context2.sent;
23801
23800
 
23802
- case 9:
23803
- chainId = provider.chainId = _context2.t0;
23801
+ case 8:
23802
+ _context2.t2 = _context2.t1;
23803
+ chainId = provider.chainId = (0, _context2.t0)(_context2.t2);
23804
23804
  _ref = sendAsync.context || {
23805
23805
  chainProvider: {}
23806
23806
  }, chainProvider = _ref.chainProvider;
23807
- provider = chainProvider[chainId] ? instrumentedProviders[chainId] = instrumentedProviders[chainId] || new Web3__default["default"].providers.HttpProvider(chainProvider[chainId]) : provider;
23807
+ provider = chainId !== 1 && chainProvider[chainId] ? instrumentedProviders[chainId] = instrumentedProviders[chainId] || new Web3__default["default"].providers.HttpProvider(chainProvider[chainId]) : provider;
23808
23808
 
23809
23809
  case 12:
23810
23810
  params = Array.prototype.slice.call(_args2).slice(2) || [];