1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

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

This commit is contained in:
Erik Marks 2020-10-12 17:06:25 -07:00 committed by GitHub
parent e071b4482e
commit 31d373e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
})
}