1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00
metamask-extension/ui
Mark Stacey ec7e7fdf6d
Fix fallback gas estimation (#19746)
* Fix fallback gas estimation

Our fallback gas estimation was failing due to a bug in the
`@metamask/controller-utils` package. This was causing gas estimation
to fail completely on certain networks (those not supported by our gas
estimation APIs and non EIP-1559 compatibile), and it was causing the
fallback gas estimation operation (in case our API was down) to fail
across all networks.

Fixes https://github.com/MetaMask/metamask-extension/issues/19735

* Add e2e tests

E2E tests have been added to capture gas estimation. Cases are added
for our API, for the fallback estimate, and for non-EIP-1559 estimates.

As part of this work, the legacy gas API had to be disabled. This was
being used in e2e tests but was dead code in production. It needed to
be disabled to ensure the code under test was reachable.

* Fix gas API referenced in e2e test

* Update unit test snapshots
2023-06-26 16:13:16 -02:30
..
__mocks__ Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
components Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
contexts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
css Fix #18423 - Ensure token details stay within dropdown (#19626) 2023-06-21 16:28:53 -05:00
ducks Fix autolock field to accept decimals in Firefox (#19653) 2023-06-22 10:29:24 -06:00
helpers Use snaps@0.35.2-flask.1 and snaps@1.0.0-prerelease.1 (#19734) 2023-06-26 19:41:59 +02:00
hooks Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
pages Fix fallback gas estimation (#19746) 2023-06-26 16:13:16 -02:30
selectors Only show a Swaps notification on a supported chain (#19673) 2023-06-20 18:57:14 +02:00
store Accept SignController approval request from frontend (#19184) 2023-06-20 15:37:09 +02:00
index.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
index.test.js Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00