miniwallet 0.1.5 → 0.1.6
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/miniwallet.js +2 -2
- package/package.json +1 -1
package/dist/miniwallet.js
CHANGED
|
@@ -171,7 +171,7 @@ function m({ children: e, chains: n = [] }) {
|
|
|
171
171
|
}, []), r(() => {
|
|
172
172
|
g && N();
|
|
173
173
|
}, [N, g]), r(() => {
|
|
174
|
-
if (!T?.on) return;
|
|
174
|
+
if (!D || !T?.on) return;
|
|
175
175
|
let e = (e) => {
|
|
176
176
|
console.log("ChainChanged chainId: ", e), _(parseInt(e, 16));
|
|
177
177
|
}, t = (e) => {
|
|
@@ -180,7 +180,7 @@ function m({ children: e, chains: n = [] }) {
|
|
|
180
180
|
return console.log("Listen chainChanged and accountsChanged"), T.on("chainChanged", e), T.on("accountsChanged", t), () => {
|
|
181
181
|
console.log("RemoveListener chainChanged and accountsChanged"), T.removeListener("chainChanged", e), T.removeListener("accountsChanged", t);
|
|
182
182
|
};
|
|
183
|
-
}, [T]), r(() => {
|
|
183
|
+
}, [T, D]), r(() => {
|
|
184
184
|
if (!s) return;
|
|
185
185
|
let e = setInterval(N, 1e4);
|
|
186
186
|
return () => clearInterval(e);
|