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