mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +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>
21 lines
648 B
JavaScript
21 lines
648 B
JavaScript
// Codecov uses a yaml file for its configuration and it targets line coverage.
|
|
// To keep our policy in place we have thile file separate from our
|
|
// codecov.yml file that specifies coverage targets for each project in the
|
|
// codecov.yml file. These targets are read by the test/merge-coverage.js
|
|
// script, and the paths from the codecov.yml file are used to figure out which
|
|
// subset of files to check against these targets.
|
|
module.exports = {
|
|
global: {
|
|
lines: 64.5,
|
|
branches: 53.15,
|
|
statements: 63.57,
|
|
functions: 56.58,
|
|
},
|
|
transforms: {
|
|
branches: 100,
|
|
functions: 100,
|
|
lines: 100,
|
|
statements: 100,
|
|
},
|
|
};
|