mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
efaaf4fab2
* Use tokenList to get token details, when available, in getTokenStandardAndDetails Previously, every call to getTokenStandardAndDetails would fetch data via the provider. This would result in at least 3 network requests whenever that method is called for an ERC20 token, contributing to unneccesary loading and lagging in multiple places. This commit takes advantage of stored data we already have available to avoid the unnecessary loading. * Lint fix * Fix build-quote test * bump coverage targets * Pass provider to token-util, for use in ethers Contract module * Check all possible sources of ERC20 token data before async call to assetsContractController * Add and update tests * Update app/scripts/metamask-controller.js Co-authored-by: Alex Donesky <adonesky@gmail.com> * Update app/scripts/metamask-controller.js Co-authored-by: Alex Donesky <adonesky@gmail.com> * Remove unnecessary this.ethQuery changes * Use metamask-eth-abis instead of human-standard-token-abi in token-util.ts * Add explanatory comments to getTokenStandardAndDetails * lint fix * Cleanup * fix test * Update app/scripts/metamask-controller.js Co-authored-by: Alex Donesky <adonesky@gmail.com> * update error message --------- Co-authored-by: Alex Donesky <adonesky@gmail.com> |
||
---|---|---|
.. | ||
__snapshots__ | ||
awaiting-signatures | ||
awaiting-swap | ||
build-quote | ||
countdown-timer | ||
create-new-swap | ||
dropdown-input-pair | ||
dropdown-search-list | ||
exchange-rate-display | ||
fee-card | ||
import-token | ||
loading-swaps-quotes | ||
main-quote-summary | ||
searchable-item-list | ||
select-quote-popover | ||
slippage-buttons | ||
smart-transaction-status | ||
swaps-footer | ||
view-on-block-explorer | ||
view-quote | ||
index.js | ||
index.scss | ||
index.test.js | ||
swaps-util-test-constants.js | ||
swaps.util.test.js | ||
swaps.util.ts |