|
|
|
@ -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 |
|
|
|
|