mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
ec40b2a325
* Remove unused state 'gas.basicPriceAndTimeEstimates' * Check for invalid estimates from local storage Gas estimates were being cached in local storage then later retrieved, but the retrieved values were not being checked. If the data failed to save, failed to load, or was cleared since being saved, it would result in the gas estimates being set to undefined. The estimates retrieved from local storage are now checked before they are used. If they are falsy, the estimates are retrieved from the network instead. This should fix this Sentry issue: [METAMASK-6W0T](https://sentry.io/share/issue/cfe470314a5741768b19050815322aa4/) A few additional changes were made to the gas-duck tests to accommodate the use of `sinon.restore`. `restore` is strongly recommended by the `sinon` team, as neglecting to use it can result in memory leaks. It has the additional benefit of ensuring you create fresh stubs/spies for each test, which means they no longer need to be reset between tests. |
||
---|---|---|
.. | ||
account-detail-with-shapeshift-tx.json | ||
account-detail-with-transaction-history.json | ||
account-detail.json | ||
account-list-with-imported.json | ||
accounts-loose.json | ||
accounts.json | ||
add-token.json | ||
compilation-bug.json | ||
conf-tx.json | ||
config.json | ||
confirm-new-ui.json | ||
confirm-sig-requests.json | ||
create-vault-password.json | ||
currency-localization.json | ||
custom-rpc.json | ||
empty-account-detail.json | ||
first-time.json | ||
help.json | ||
import-private-key-warning.json | ||
import-private-key.json | ||
locked.json | ||
lost-accounts.json | ||
navigate-txs.json | ||
new-account.json | ||
new-vault.json | ||
notice.json | ||
pending-crash.json | ||
pending-signature.json | ||
pending-tx-insufficient.json | ||
pending-tx.json | ||
personal-sign.json | ||
private-key-export-success.json | ||
private-key-export.json | ||
private-network.json | ||
restore-vault.json | ||
send-edit.json | ||
send-new-ui.json | ||
send.json | ||
shapeshift.json | ||
show-seed-words.json | ||
terms-and-conditions.json | ||
tx-list-items.json |