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

Loading…
Cancel
Save