mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +01:00
Stop loading popular tokens by default
Improves performance when loading the token tab.
This commit is contained in:
parent
c9dd8a9cfd
commit
8abd592034
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Current Master
|
## Current Master
|
||||||
|
|
||||||
|
- Temporarily disabled loading popular tokens by default to improve performance.
|
||||||
|
|
||||||
## 3.8.0 2017-6-28
|
## 3.8.0 2017-6-28
|
||||||
|
|
||||||
- No longer stop rebroadcasting transactions
|
- No longer stop rebroadcasting transactions
|
||||||
|
@ -3,10 +3,11 @@ const h = require('react-hyperscript')
|
|||||||
const inherits = require('util').inherits
|
const inherits = require('util').inherits
|
||||||
const TokenTracker = require('eth-token-tracker')
|
const TokenTracker = require('eth-token-tracker')
|
||||||
const TokenCell = require('./token-cell.js')
|
const TokenCell = require('./token-cell.js')
|
||||||
const contracts = require('eth-contract-metadata')
|
|
||||||
const normalizeAddress = require('eth-sig-util').normalize
|
const normalizeAddress = require('eth-sig-util').normalize
|
||||||
|
|
||||||
const defaultTokens = []
|
const defaultTokens = []
|
||||||
|
/*
|
||||||
|
const contracts = require('eth-contract-metadata')
|
||||||
for (const address in contracts) {
|
for (const address in contracts) {
|
||||||
const contract = contracts[address]
|
const contract = contracts[address]
|
||||||
if (contract.erc20) {
|
if (contract.erc20) {
|
||||||
@ -14,6 +15,7 @@ for (const address in contracts) {
|
|||||||
defaultTokens.push(contract)
|
defaultTokens.push(contract)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = TokenList
|
module.exports = TokenList
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user