Skip to content

Commit

Permalink
Update network.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kumavis authored Oct 21, 2018
1 parent 61c7bbb commit b62d07f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/scripts/controllers/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = class NetworkController extends EventEmitter {
return log.warn('NetworkController - lookupNetwork aborted due to missing provider')
}
const ethQuery = new EthQuery(this._provider)
// first attempt to perform lookup via eth_chainId
ethQuery.sendAsync({ method: 'eth_chainId' }, (err, chainIdHex) => {
if (err) {
// if eth_chainId is not supported, fallback to net_verion
Expand Down

0 comments on commit b62d07f

Please sign in to comment.