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:
parent
e071b4482e
commit
31d373e62c
@ -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…
Reference in New Issue
Block a user