You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gracefully handle requesting gas fee estimates for nonexistent network
Currently, when GasFeeController tries to fetch gas fee estimates for a
network that has been removed, it consults NetworkController for the
corresponding network client, and NetworkController throws an error.
This commit gracefully handles this situation by returning an empty set
of estimates.
Copy file name to clipboardExpand all lines: packages/gas-fee-controller/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
- Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.0` ([#5079](https://github.com/MetaMask/core/pull/5079))
13
13
14
+
### Fixed
15
+
16
+
- Fix `fetchGasFeeEstimates` so that it no longer throws an error if given a reference to a network that does not exist ([#5084](https://github.com/MetaMask/core/pull/5084))
0 commit comments