aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-10-21 16:32:07 +0800
committerGitHub <noreply@github.com>2018-10-21 16:32:07 +0800
commitb62d07f3a5bdfde7e295f17b7f601c6f2d5314ef (patch)
treea85f13b08b8e0c2f1401ffc5218324c3b6dd5a50 /app/scripts/controllers
parent61c7bbb1c1f0c216d5f8cd0d0753c78bc635624e (diff)
downloadtangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar.gz
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar.bz2
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar.lz
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar.xz
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.tar.zst
tangerine-wallet-browser-b62d07f3a5bdfde7e295f17b7f601c6f2d5314ef.zip
Update network.js
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/network/network.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js
index 904c20cff..6a5369f06 100644
--- a/app/scripts/controllers/network/network.js
+++ b/app/scripts/controllers/network/network.js
@@ -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