aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-06-28 05:49:41 +0800
committerDan Finlay <dan@danfinlay.com>2017-06-28 05:53:27 +0800
commit5440ed23d621c9ebcd24f89d54701f978e1c086e (patch)
tree694282fa94d6d60ef578ec8477f956404a815ef6 /ui/app
parent81ec53a814596be6b4ae9dc351e999e8844780dd (diff)
downloadtangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar.gz
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar.bz2
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar.lz
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar.xz
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.tar.zst
tangerine-wallet-browser-5440ed23d621c9ebcd24f89d54701f978e1c086e.zip
Support other network links
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/token-cell.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js
index d3a895d36..4d2cacb01 100644
--- a/ui/app/components/token-cell.js
+++ b/ui/app/components/token-cell.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const Identicon = require('./identicon')
+const prefixForNetwork = require('../../lib/etherscan-prefix-for-network')
module.exports = TokenCell
@@ -41,6 +42,7 @@ function navigateTo (url) {
}
function urlFor (tokenAddress, address, network) {
- return `https://etherscan.io/token/${tokenAddress}?a=${address}`
+ const prefix = prefixForNetwork(network)
+ return `https://${prefix}etherscan.io/token/${tokenAddress}?a=${address}`
}