diff --git a/src/web3-store.js b/src/web3-store.js index 02047ef..6b71300 100644 --- a/src/web3-store.js +++ b/src/web3-store.js @@ -49,8 +49,8 @@ export const createStore = () => { const accounts = /127/.test(provider) ? [] : await instance.eth.getAccounts() if (callback) { instance._provider.removeListener('accountsChanged', () => setProvider(provider, true)) - // instance._provider.removeListener('chainChanged', () => setProvider(provider, true)) - instance._provider.removeListener('networkChanged', () => setProvider(provider, true)) + // instance._provider.removeListener('chainChanged', () => setProvider(provider, true)) + instance._provider.removeListener('networkChanged', () => setProvider(provider, true)) } else { if (instance._provider && instance._provider.on) { instance._provider.on('accountsChanged', () => setProvider(provider, true))