diff options
Diffstat (limited to 'ui/lib/account-link.js')
-rw-r--r-- | ui/lib/account-link.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js index 037d990fa..f2e321991 100644 --- a/ui/lib/account-link.js +++ b/ui/lib/account-link.js @@ -1,4 +1,8 @@ -module.exports = function (address, network) { +module.exports = function (address, network, rpcPrefs) { + if (rpcPrefs && rpcPrefs.blockExplorerUrl) { + return `${rpcPrefs.blockExplorerUrl}/address/${address}` + } + const net = parseInt(network) let link switch (net) { @@ -17,6 +21,9 @@ module.exports = function (address, network) { case 42: // kovan test net link = `https://kovan.etherscan.io/address/${address}` break + case 5: // goerli test net + link = `https://goerli.etherscan.io/address/${address}` + break default: link = '' break |