diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-06-29 01:07:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 01:07:49 +0800 |
commit | ffd3773ef3c400c89c362580e7ae3969d00ae20c (patch) | |
tree | 13cc622a66025476bdcb8840c316c05c0146a533 /ui/app/components/token-cell.js | |
parent | ddba2af4152668a5767ce874a4727873c72bac72 (diff) | |
parent | 8642feee09f57d5756c682a053434a196cff4af3 (diff) | |
download | tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.gz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.bz2 tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.lz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.xz tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.tar.zst tangerine-wallet-browser-ffd3773ef3c400c89c362580e7ae3969d00ae20c.zip |
Merge pull request #1620 from MetaMask/i1616-AddTokenAdding
Add ability to add tokens to token list
Diffstat (limited to 'ui/app/components/token-cell.js')
-rw-r--r-- | ui/app/components/token-cell.js | 4 |
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}` } |