Use networkVersion as the network state for all networks (#9555)

feature/default_network_editable
Erik Marks 4 years ago committed by GitHub
parent e071b4482e
commit 31d373e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/scripts/controllers/network/network.js

@ -120,7 +120,6 @@ export default class NetworkController extends EventEmitter {
return
}
const { type } = this.getProviderConfig()
const chainId = this.getCurrentChainId()
if (!chainId) {
log.warn('NetworkController - lookupNetwork aborted due to missing chainId')
@ -139,11 +138,7 @@ export default class NetworkController extends EventEmitter {
return
}
this.setNetworkState((
type === 'rpc'
? chainId
: networkVersion
))
this.setNetworkState(networkVersion)
}
})
}

Loading…
Cancel
Save