Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
byterose authored Jul 26, 2021
1 parent cd54e39 commit d185a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web3-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d185a4e

Please sign in to comment.