mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Try to fix intermittent test failure in NonceTracker tests
This commit is contained in:
parent
926abc12b1
commit
6d05238469
@ -51,6 +51,10 @@ module.exports = class NetworkController extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lookupNetwork () {
|
lookupNetwork () {
|
||||||
|
// Prevent firing when provider is not defined.
|
||||||
|
if (!this.ethQuery || !this.ethQuery.sendAsync) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.ethQuery.sendAsync({ method: 'net_version' }, (err, network) => {
|
this.ethQuery.sendAsync({ method: 'net_version' }, (err, network) => {
|
||||||
if (err) return this.setNetworkState('loading')
|
if (err) return this.setNetworkState('loading')
|
||||||
log.info('web3.getNetwork returned ' + network)
|
log.info('web3.getNetwork returned ' + network)
|
||||||
|
Loading…
Reference in New Issue
Block a user