1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/lavamoat/browserify
Mark Stacey abd2a5559e
Update @metamask/gas-fee-controller to v6 (#19366)
* Update `@metamask/gas-fee-controller` to v6

The `@metamask/address-book-controller` package has been updated to v3.
This version was part of the [core monorepo v53](MetaMask/core#1385)
release. The remaining packages released as part of v53 will be updated
in later PRs.

This release included a number of breaking changes, but most of them
do not affect the extension:

* Bump to Node 16
  * The extension already uses Node.js v16
* The `getChainId` constructor parameter now expects a `Hex` return
type rather than a decimal string
  * The extension was already passing in a `getChainId` parameter that
returned `Hex`
* The gas fee controller messenger now requires the
`NetworkController:stateChange` event instead of the
`NetworkController:providerConfigChange` event
  * This does not apply if `onNetworkStateChange` and `getChainId` are
provided to the constructor, which is the case here.
* Update `@metamask/network-controller` dependency and peer dependency
  * This dependency is only used for types, and none of the type
changes affect how the extension interacts with this controller.

The one change that did have an impact is that the constructor
parameter `onNetworkStateChange` now expects event handlers to be
passed the full network state.

Relates to #19271

* Ensure chainid always matches mainnet in test builds

This is a bit strange, but this is how the tests were setup previously.

* Fix accidental state mutation

* Remove hardcoded mainnet chain ID from test builds
2023-06-13 12:13:13 -02:30
..
beta Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
desktop Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
flask Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
main Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
mmi Update @metamask/gas-fee-controller to v6 (#19366) 2023-06-13 12:13:13 -02:30
policy-override.json Use separate versions for Flask and Stable snaps (#18875) 2023-05-03 15:16:43 +02:00