aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
authorThomas Huang <thomas.b.huang@gmail.com>2017-05-16 10:11:16 +0800
committerThomas Huang <thomas.b.huang@gmail.com>2017-05-16 10:11:16 +0800
commit3367363b1234a076695758762d7f1220fe4a7f8c (patch)
treeebcc8771da1e34491e3687035c754effe0c5beaa /app/scripts/lib/config-manager.js
parent62ee03888944e0795be81b01a8bb9021db40402b (diff)
downloadtangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar.gz
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar.bz2
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar.lz
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar.xz
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.tar.zst
tangerine-wallet-browser-3367363b1234a076695758762d7f1220fe4a7f8c.zip
Remove all traces of testnet
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r--app/scripts/lib/config-manager.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 4ca02135a..d77cd2126 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -2,12 +2,10 @@ const MetamaskConfig = require('../config.js')
const ethUtil = require('ethereumjs-util')
const normalize = require('eth-sig-util').normalize
-const TESTNET_RPC = MetamaskConfig.network.testnet
const MAINNET_RPC = MetamaskConfig.network.mainnet
-const MORDEN_RPC = MetamaskConfig.network.morden
-const KOVAN_RPC = MetamaskConfig.network.kovan
const ROPSTEN_RPC = MetamaskConfig.network.ropsten
-
+const KOVAN_RPC = MetamaskConfig.network.kovan
+const RINKEBY_RPC = MetamaskConfig.network.rinkeby
/* The config-manager is a convenience object
* wrapping a pojo-migrator.
@@ -150,17 +148,14 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
case 'ropsten':
return ROPSTEN_RPC
- case 'morden':
- return MORDEN_RPC
-
case 'kovan':
return KOVAN_RPC
- case 'testnet':
- return TESTNET_RPC
+ case 'rinkeby':
+ return RINKEBY_RPC
default:
- return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC
+ return provider && provider.rpcTarget ? provider.rpcTarget : RINKEBY_RPC
}
}