@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 +3 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -48910,12 +48910,9 @@ var Web3ContextInitializer = function Web3ContextInitializer(_ref) {
|
|
48910
48910
|
var resetBlockInterval = useCallback(function () {
|
48911
48911
|
intervalId && clearInterval(intervalId);
|
48912
48912
|
tryUpdateBlock(wallet === null || wallet === void 0 ? void 0 : wallet.ethereum, block, setBlock, true);
|
48913
|
-
tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true)
|
48914
|
-
|
48915
|
-
|
48916
|
-
}, realBlockIntervalTimeout));
|
48917
|
-
dualProvider && setIntervalId(setInterval(function () {
|
48918
|
-
return tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
|
48913
|
+
tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true)(wallet && wallet.ethereum || dualProvider) && setIntervalId(setInterval(function () {
|
48914
|
+
tryUpdateBlock(wallet.ethereum, block, setBlock);
|
48915
|
+
tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
|
48919
48916
|
}, realBlockIntervalTimeout));
|
48920
48917
|
}, [wallet, dualProvider, realBlockIntervalTimeout, intervalId]);
|
48921
48918
|
useEffect(resetBlockInterval, [realBlockInterval, realBlockIntervalTimeout, wallet && wallet.ethereum, dualProvider]);
|