@ethereansos/interfaces-core 0.4.108 → 0.4.109

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
@@ -48779,11 +48779,14 @@ var useEthosContext = function useEthosContext() {
48779
48779
  var Web3Context = /*#__PURE__*/React__default["default"].createContext('web3');
48780
48780
  var DEFAULT_BLOCK_INTERVAL = 15;
48781
48781
  var DEFAULT_BLOCK_INTERVAL_TIMEOUT = 40000;
48782
+
48783
+ var chains = require('use-wallet').chains;
48782
48784
  /**
48783
48785
  * WRAP CHAINS START
48784
48786
  **/
48785
48787
 
48786
- var ETH = useWallet.chains.getChainInformation(1).nativeCurrency;
48788
+
48789
+ var ETH = chains.getChainInformation(1).nativeCurrency;
48787
48790
  var WRAPPED_CHAINS = {
48788
48791
  10: {
48789
48792
  id: 10,
@@ -48797,11 +48800,11 @@ var WRAPPED_CHAINS = {
48797
48800
  };
48798
48801
 
48799
48802
  function wrap(methodName, funct, force) {
48800
- var oldFunction = useWallet.chains[methodName];
48803
+ var oldFunction = chains[methodName];
48801
48804
 
48802
- useWallet.chains[methodName] = function (chainId) {
48805
+ chains[methodName] = function (chainId) {
48803
48806
  var args = [].concat(Array.prototype.slice.call(arguments), [oldFunction]);
48804
- return (WRAPPED_CHAINS[parseInt(chainId)] || force ? funct : oldFunction).apply(useWallet.chains, args);
48807
+ return (WRAPPED_CHAINS[parseInt(chainId)] || force ? funct : oldFunction).apply(chains, args);
48805
48808
  };
48806
48809
  }
48807
48810