aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-03-23 06:58:53 +0800
committerGitHub <noreply@github.com>2017-03-23 06:58:53 +0800
commitb9714b881a862302baa0c21d8b8c5360c0e9f85d (patch)
treede2872bc8e0c9c21fe941ac363561dabdea3877c /app
parent205161c489af0bd30b019cea6ae1a2bc5079db3e (diff)
parentaf9d782363dd3765d1ba529e7afb8944fb2e7153 (diff)
downloadtangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar.gz
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar.bz2
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar.lz
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar.xz
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.tar.zst
tangerine-wallet-browser-b9714b881a862302baa0c21d8b8c5360c0e9f85d.zip
Merge pull request #1243 from MetaMask/i238-kovan
Add Kovan Test Net
Diffstat (limited to 'app')
-rw-r--r--app/scripts/config.js2
-rw-r--r--app/scripts/lib/config-manager.js4
2 files changed, 6 insertions, 0 deletions
diff --git a/app/scripts/config.js b/app/scripts/config.js
index b4541a04a..ec421744d 100644
--- a/app/scripts/config.js
+++ b/app/scripts/config.js
@@ -1,5 +1,6 @@
const MAINET_RPC_URL = 'https://mainnet.infura.io/metamask'
const TESTNET_RPC_URL = 'https://ropsten.infura.io/metamask'
+const KOVAN_RPC_URL = 'https://kovan.infura.io/metamask'
const DEFAULT_RPC_URL = TESTNET_RPC_URL
global.METAMASK_DEBUG = 'GULP_METAMASK_DEBUG'
@@ -10,5 +11,6 @@ module.exports = {
mainnet: MAINET_RPC_URL,
testnet: TESTNET_RPC_URL,
morden: TESTNET_RPC_URL,
+ kovan: KOVAN_RPC_URL,
},
}
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 6868637e5..e31cb45ed 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -5,6 +5,7 @@ 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
/* The config-manager is a convenience object
* wrapping a pojo-migrator.
@@ -150,6 +151,9 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
case 'morden':
return MORDEN_RPC
+ case 'kovan':
+ return KOVAN_RPC
+
default:
return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC
}