From d185a4e6089bf4ec526b68d647c25a0f1fbd3f4a Mon Sep 17 00:00:00 2001 From: byterose <77129089+byterose@users.noreply.github.com> Date: Mon, 26 Jul 2021 16:38:42 +0200 Subject: [PATCH] Format code --- src/web3-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))