diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-08-17 00:49:23 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-08-17 00:49:23 +0800 |
commit | 722d91c8661a2c0912b7eaf9bcf20f220b76e384 (patch) | |
tree | 2ff8546f58ba4b28a8f6d30609d456802c833c56 | |
parent | b69f5533d902a1aba121b7d3752475c11084885b (diff) | |
download | tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar.gz tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar.bz2 tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar.lz tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar.xz tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.tar.zst tangerine-wallet-browser-722d91c8661a2c0912b7eaf9bcf20f220b76e384.zip |
Remove default tokens
-rw-r--r-- | ui/app/components/token-list.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js index 5ea31ae8d..1ea15521a 100644 --- a/ui/app/components/token-list.js +++ b/ui/app/components/token-list.js @@ -5,16 +5,6 @@ const TokenTracker = require('eth-token-tracker') const TokenCell = require('./token-cell.js') const normalizeAddress = require('eth-sig-util').normalize -const defaultTokens = [] -const contracts = require('eth-contract-metadata') -for (const address in contracts) { - const contract = contracts[address] - if (contract.erc20) { - contract.address = address - defaultTokens.push(contract) - } -} - module.exports = TokenList inherits(TokenList, Component) @@ -153,7 +143,7 @@ TokenList.prototype.createFreshTokenTracker = function () { this.tracker = new TokenTracker({ userAddress, provider: global.ethereumProvider, - tokens: uniqueMergeTokens(defaultTokens, this.props.tokens), + tokens: this.props.tokens, pollingInterval: 8000, }) |