@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.esm.js CHANGED
@@ -23772,27 +23772,27 @@ function _sendAsync() {
23772
23772
  break;
23773
23773
  }
23774
23774
 
23775
- _context2.t0 = provider.chainId;
23775
+ _context2.t0 = parseInt;
23776
+ _context2.t1 = provider.chainId;
23776
23777
 
23777
- if (_context2.t0) {
23778
- _context2.next = 9;
23778
+ if (_context2.t1) {
23779
+ _context2.next = 8;
23779
23780
  break;
23780
23781
  }
23781
23782
 
23782
- _context2.t1 = parseInt;
23783
23783
  _context2.next = 7;
23784
23784
  return sendAsync(provider, 'eth_chainId');
23785
23785
 
23786
23786
  case 7:
23787
- _context2.t2 = _context2.sent;
23788
- _context2.t0 = (0, _context2.t1)(_context2.t2);
23787
+ _context2.t1 = _context2.sent;
23789
23788
 
23790
- case 9:
23791
- chainId = provider.chainId = _context2.t0;
23789
+ case 8:
23790
+ _context2.t2 = _context2.t1;
23791
+ chainId = provider.chainId = (0, _context2.t0)(_context2.t2);
23792
23792
  _ref = sendAsync.context || {
23793
23793
  chainProvider: {}
23794
23794
  }, chainProvider = _ref.chainProvider;
23795
- provider = chainProvider[chainId] ? instrumentedProviders[chainId] = instrumentedProviders[chainId] || new Web3.providers.HttpProvider(chainProvider[chainId]) : provider;
23795
+ provider = chainId !== 1 && chainProvider[chainId] ? instrumentedProviders[chainId] = instrumentedProviders[chainId] || new Web3.providers.HttpProvider(chainProvider[chainId]) : provider;
23796
23796
 
23797
23797
  case 12:
23798
23798
  params = Array.prototype.slice.call(_args2).slice(2) || [];