mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove default tokens
This commit is contained in:
parent
b69f5533d9
commit
722d91c866
@ -5,16 +5,6 @@ const TokenTracker = require('eth-token-tracker')
|
|||||||
const TokenCell = require('./token-cell.js')
|
const TokenCell = require('./token-cell.js')
|
||||||
const normalizeAddress = require('eth-sig-util').normalize
|
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
|
module.exports = TokenList
|
||||||
|
|
||||||
inherits(TokenList, Component)
|
inherits(TokenList, Component)
|
||||||
@ -153,7 +143,7 @@ TokenList.prototype.createFreshTokenTracker = function () {
|
|||||||
this.tracker = new TokenTracker({
|
this.tracker = new TokenTracker({
|
||||||
userAddress,
|
userAddress,
|
||||||
provider: global.ethereumProvider,
|
provider: global.ethereumProvider,
|
||||||
tokens: uniqueMergeTokens(defaultTokens, this.props.tokens),
|
tokens: this.props.tokens,
|
||||||
pollingInterval: 8000,
|
pollingInterval: 8000,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user