aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/account-link.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/account-link.js')
-rw-r--r--ui/lib/account-link.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js
index 77db0851d..d061d0ad1 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}`
@@ -10,7 +9,13 @@ module.exports = function (address, network) {
link = `http://morden.etherscan.io/address/${address}`
break
case 3: // ropsten test net
- link = `http://testnet.etherscan.io/address/${address}`
+ link = `http://ropsten.etherscan.io/address/${address}`
+ break
+ case 4: // rinkeby test net
+ link = `http://rinkeby.etherscan.io/address/${address}`
+ break
+ case 42: // kovan test net
+ link = `http://kovan.etherscan.io/address/${address}`
break
default:
link = ''