aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib
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 /ui/lib
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 'ui/lib')
-rw-r--r--ui/lib/account-link.js4
-rw-r--r--ui/lib/explorer-link.js5
2 files changed, 7 insertions, 2 deletions
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js
index 77db0851d..948f32da1 100644
--- a/ui/lib/account-link.js
+++ b/ui/lib/account-link.js
@@ -1,7 +1,6 @@
module.exports = function (address, network) {
const net = parseInt(network)
let link
-
switch (net) {
case 1: // main net
link = `http://etherscan.io/address/${address}`
@@ -12,6 +11,9 @@ module.exports = function (address, network) {
case 3: // ropsten test net
link = `http://testnet.etherscan.io/address/${address}`
break
+ case 42: // kovan test net
+ link = `http://kovan.etherscan.io/address/${address}`
+ break
default:
link = ''
break
diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js
index dc6be2984..7ae19cca0 100644
--- a/ui/lib/explorer-link.js
+++ b/ui/lib/explorer-link.js
@@ -5,9 +5,12 @@ module.exports = function (hash, network) {
case 1: // main net
prefix = ''
break
- case 3: // morden test net
+ case 3: // ropsten test net
prefix = 'testnet.'
break
+ case 42: // kovan test net
+ prefix = 'kovan.'
+ break
default:
prefix = ''
}