aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-11-22 02:58:49 +0800
committerDan Finlay <dan@danfinlay.com>2016-11-22 02:58:49 +0800
commite8a83026248e6e27e6d801cf1713551eb740137a (patch)
tree528f87b75425d172db7f3d4b9b563a348535042b /app/scripts/lib/config-manager.js
parent37d836fa72c75945d436bd94feadb65aa95d7e5f (diff)
downloadtangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar.gz
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar.bz2
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar.lz
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar.xz
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.tar.zst
tangerine-wallet-browser-e8a83026248e6e27e6d801cf1713551eb740137a.zip
Begin adding Ropsten support
Ropsten links will still not work until Etherscan publishes their ropsten link format. At that time we will need to update ui/lib/account-link.js Otherwise, fixes #831
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r--app/scripts/lib/config-manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index cced32670..b8ffb6991 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -5,6 +5,7 @@ const rp = require('request-promise')
const TESTNET_RPC = MetamaskConfig.network.testnet
const MAINNET_RPC = MetamaskConfig.network.mainnet
+const MORDEN_RPC = MetamaskConfig.network.morden
const txLimit = 40
/* The config-manager is a convenience object
@@ -148,6 +149,9 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
case 'testnet':
return TESTNET_RPC
+ case 'morden':
+ return MORDEN_RPC
+
default:
return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC
}