@ethereansos/interfaces-core 0.4.113 → 0.4.114

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -48922,12 +48922,9 @@ var Web3ContextInitializer = function Web3ContextInitializer(_ref) {
48922
48922
  var resetBlockInterval = React.useCallback(function () {
48923
48923
  intervalId && clearInterval(intervalId);
48924
48924
  tryUpdateBlock(wallet === null || wallet === void 0 ? void 0 : wallet.ethereum, block, setBlock, true);
48925
- tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true);
48926
- wallet && wallet.ethereum && setIntervalId(setInterval(function () {
48927
- return tryUpdateBlock(wallet.ethereum, block, setBlock);
48928
- }, realBlockIntervalTimeout));
48929
- dualProvider && setIntervalId(setInterval(function () {
48930
- return tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
48925
+ tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true)(wallet && wallet.ethereum || dualProvider) && setIntervalId(setInterval(function () {
48926
+ tryUpdateBlock(wallet.ethereum, block, setBlock);
48927
+ tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
48931
48928
  }, realBlockIntervalTimeout));
48932
48929
  }, [wallet, dualProvider, realBlockIntervalTimeout, intervalId]);
48933
48930
  React.useEffect(resetBlockInterval, [realBlockInterval, realBlockIntervalTimeout, wallet && wallet.ethereum, dualProvider]);