From 7905282fe2de891fd9de2d31ff0fd38218669b5a Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 21:08:43 +0200 Subject: [PATCH 01/10] feat: add `defaultInfuraNetworks` --- packages/controller-utils/src/types.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/controller-utils/src/types.ts b/packages/controller-utils/src/types.ts index 95ac170672..d5a69be6ff 100644 --- a/packages/controller-utils/src/types.ts +++ b/packages/controller-utils/src/types.ts @@ -23,6 +23,27 @@ export const InfuraNetworkType = { export type InfuraNetworkType = (typeof InfuraNetworkType)[keyof typeof InfuraNetworkType]; +/** + * The default set of Infura networks to include in the wallet. + * + * This is a subset of the full list of {@link InfuraNetworkType}, and can be used to determine + * which Infura networks to enable by default. + */ +export const defaultInfuraNetworks: InfuraNetworkType[] = [ + InfuraNetworkType.mainnet, + InfuraNetworkType.goerli, + InfuraNetworkType.sepolia, + InfuraNetworkType['linea-goerli'], + InfuraNetworkType['linea-sepolia'], + InfuraNetworkType['linea-mainnet'], + InfuraNetworkType['base-mainnet'], + InfuraNetworkType['arbitrum-mainnet'], + InfuraNetworkType['bsc-mainnet'], + InfuraNetworkType['optimism-mainnet'], + InfuraNetworkType['polygon-mainnet'], + InfuraNetworkType['monad-mainnet'], +]; + /** * Custom network types that are not part of Infura. */ From e53cd4f542485683fec6dee0a7902ceb5acebef9 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 21:09:19 +0200 Subject: [PATCH 02/10] use `defaultInfuraNetwork` instead of `InfuraNetworkType` as default networks --- .../src/NetworkController.ts | 58 +-- .../tests/NetworkController.test.ts | 360 ------------------ 2 files changed, 30 insertions(+), 388 deletions(-) diff --git a/packages/network-controller/src/NetworkController.ts b/packages/network-controller/src/NetworkController.ts index e77d72f98e..65cc9ca33d 100644 --- a/packages/network-controller/src/NetworkController.ts +++ b/packages/network-controller/src/NetworkController.ts @@ -16,6 +16,7 @@ import { NetworkNickname, BUILT_IN_CUSTOM_NETWORKS_RPC, BUILT_IN_NETWORKS, + defaultInfuraNetworks, } from '@metamask/controller-utils'; import type { PollingBlockTrackerOptions } from '@metamask/eth-block-tracker'; import EthQuery from '@metamask/eth-query'; @@ -807,37 +808,38 @@ function getDefaultInfuraNetworkConfigurationsByChainId(): Record< Hex, NetworkConfiguration > { - return Object.values(InfuraNetworkType).reduce< - Record - >((obj, infuraNetworkType) => { - const chainId = ChainId[infuraNetworkType]; + return defaultInfuraNetworks.reduce>( + (obj, infuraNetworkType) => { + const chainId = ChainId[infuraNetworkType]; - // Skip deprecated network as default network. - if (DEPRECATED_NETWORKS.has(chainId)) { - return obj; - } - - const rpcEndpointUrl = - `https://${infuraNetworkType}.infura.io/v3/{infuraProjectId}` as const; + // Skip deprecated network as default network. + if (DEPRECATED_NETWORKS.has(chainId)) { + return obj; + } - const networkConfiguration: NetworkConfiguration = { - blockExplorerUrls: [], - chainId, - defaultRpcEndpointIndex: 0, - name: NetworkNickname[infuraNetworkType], - nativeCurrency: NetworksTicker[infuraNetworkType], - rpcEndpoints: [ - { - failoverUrls: [], - networkClientId: infuraNetworkType, - type: RpcEndpointType.Infura, - url: rpcEndpointUrl, - }, - ], - }; + const rpcEndpointUrl = + `https://${infuraNetworkType}.infura.io/v3/{infuraProjectId}` as const; + + const networkConfiguration: NetworkConfiguration = { + blockExplorerUrls: [], + chainId, + defaultRpcEndpointIndex: 0, + name: NetworkNickname[infuraNetworkType], + nativeCurrency: NetworksTicker[infuraNetworkType], + rpcEndpoints: [ + { + failoverUrls: [], + networkClientId: infuraNetworkType, + type: RpcEndpointType.Infura, + url: rpcEndpointUrl, + }, + ], + }; - return { ...obj, [chainId]: networkConfiguration }; - }, {}); + return { ...obj, [chainId]: networkConfiguration }; + }, + {}, + ); } /** diff --git a/packages/network-controller/tests/NetworkController.test.ts b/packages/network-controller/tests/NetworkController.test.ts index c7bddcd60e..30f733598a 100644 --- a/packages/network-controller/tests/NetworkController.test.ts +++ b/packages/network-controller/tests/NetworkController.test.ts @@ -518,36 +518,6 @@ describe('NetworkController', () => { }, ], }, - "0x10e6": { - "blockExplorerUrls": [], - "chainId": "0x10e6", - "defaultRpcEndpointIndex": 0, - "name": "MegaETH Mainnet", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "megaeth-mainnet", - "type": "infura", - "url": "https://megaeth-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, - "0x144": { - "blockExplorerUrls": [], - "chainId": "0x144", - "defaultRpcEndpointIndex": 0, - "name": "ZKsync Era", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "zksync-mainnet", - "type": "infura", - "url": "https://zksync-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x2105": { "blockExplorerUrls": [], "chainId": "0x2105", @@ -578,21 +548,6 @@ describe('NetworkController', () => { }, ], }, - "0x531": { - "blockExplorerUrls": [], - "chainId": "0x531", - "defaultRpcEndpointIndex": 0, - "name": "Sei Mainnet", - "nativeCurrency": "SEI", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "sei-mainnet", - "type": "infura", - "url": "https://sei-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x89": { "blockExplorerUrls": [], "chainId": "0x89", @@ -653,21 +608,6 @@ describe('NetworkController', () => { }, ], }, - "0xa86a": { - "blockExplorerUrls": [], - "chainId": "0xa86a", - "defaultRpcEndpointIndex": 0, - "name": "Avalanche Mainnet", - "nativeCurrency": "AVAX", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "avalanche-mainnet", - "type": "infura", - "url": "https://avalanche-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0xaa36a7": { "blockExplorerUrls": [], "chainId": "0xaa36a7", @@ -747,36 +687,6 @@ describe('NetworkController', () => { }, ], }, - "0x10e6": { - "blockExplorerUrls": [], - "chainId": "0x10e6", - "defaultRpcEndpointIndex": 0, - "name": "MegaETH Mainnet", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "megaeth-mainnet", - "type": "infura", - "url": "https://megaeth-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, - "0x144": { - "blockExplorerUrls": [], - "chainId": "0x144", - "defaultRpcEndpointIndex": 0, - "name": "ZKsync Era", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "zksync-mainnet", - "type": "infura", - "url": "https://zksync-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x18c6": { "blockExplorerUrls": [ "https://megaexplorer.xyz", @@ -825,21 +735,6 @@ describe('NetworkController', () => { }, ], }, - "0x531": { - "blockExplorerUrls": [], - "chainId": "0x531", - "defaultRpcEndpointIndex": 0, - "name": "Sei Mainnet", - "nativeCurrency": "SEI", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "sei-mainnet", - "type": "infura", - "url": "https://sei-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x89": { "blockExplorerUrls": [], "chainId": "0x89", @@ -900,21 +795,6 @@ describe('NetworkController', () => { }, ], }, - "0xa86a": { - "blockExplorerUrls": [], - "chainId": "0xa86a", - "defaultRpcEndpointIndex": 0, - "name": "Avalanche Mainnet", - "nativeCurrency": "AVAX", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "avalanche-mainnet", - "type": "infura", - "url": "https://avalanche-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0xaa36a7": { "blockExplorerUrls": [], "chainId": "0xaa36a7", @@ -2071,21 +1951,6 @@ describe('NetworkController', () => { enableRpcFailover: expect.any(Function), disableRpcFailover: expect.any(Function), }, - 'avalanche-mainnet': { - blockTracker: expect.anything(), - configuration: { - type: NetworkClientType.Infura, - failoverRpcUrls: [], - infuraProjectId, - chainId: '0xa86a', - ticker: 'AVAX', - network: InfuraNetworkType['avalanche-mainnet'], - }, - provider: expect.anything(), - destroy: expect.any(Function), - enableRpcFailover: expect.any(Function), - disableRpcFailover: expect.any(Function), - }, 'base-mainnet': { blockTracker: expect.anything(), configuration: { @@ -2161,21 +2026,6 @@ describe('NetworkController', () => { enableRpcFailover: expect.any(Function), disableRpcFailover: expect.any(Function), }, - 'megaeth-mainnet': { - blockTracker: expect.anything(), - configuration: { - type: NetworkClientType.Infura, - failoverRpcUrls: [], - infuraProjectId, - chainId: '0x10e6', - ticker: 'ETH', - network: InfuraNetworkType['megaeth-mainnet'], - }, - provider: expect.anything(), - destroy: expect.any(Function), - enableRpcFailover: expect.any(Function), - disableRpcFailover: expect.any(Function), - }, 'monad-mainnet': { blockTracker: expect.anything(), configuration: { @@ -2221,21 +2071,6 @@ describe('NetworkController', () => { enableRpcFailover: expect.any(Function), disableRpcFailover: expect.any(Function), }, - 'sei-mainnet': { - blockTracker: expect.anything(), - configuration: { - type: NetworkClientType.Infura, - failoverRpcUrls: [], - infuraProjectId, - chainId: '0x531', - ticker: 'SEI', - network: InfuraNetworkType['sei-mainnet'], - }, - provider: expect.anything(), - destroy: expect.any(Function), - enableRpcFailover: expect.any(Function), - disableRpcFailover: expect.any(Function), - }, sepolia: { blockTracker: expect.anything(), configuration: { @@ -2251,21 +2086,6 @@ describe('NetworkController', () => { enableRpcFailover: expect.any(Function), disableRpcFailover: expect.any(Function), }, - 'zksync-mainnet': { - blockTracker: expect.anything(), - configuration: { - type: NetworkClientType.Infura, - failoverRpcUrls: [], - infuraProjectId, - chainId: '0x144', - ticker: 'ETH', - network: InfuraNetworkType['zksync-mainnet'], - }, - provider: expect.anything(), - destroy: expect.any(Function), - enableRpcFailover: expect.any(Function), - disableRpcFailover: expect.any(Function), - }, }); }, ); @@ -15090,36 +14910,6 @@ describe('NetworkController', () => { }, ], }, - "0x10e6": { - "blockExplorerUrls": [], - "chainId": "0x10e6", - "defaultRpcEndpointIndex": 0, - "name": "MegaETH Mainnet", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "megaeth-mainnet", - "type": "infura", - "url": "https://megaeth-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, - "0x144": { - "blockExplorerUrls": [], - "chainId": "0x144", - "defaultRpcEndpointIndex": 0, - "name": "ZKsync Era", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "zksync-mainnet", - "type": "infura", - "url": "https://zksync-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x2105": { "blockExplorerUrls": [], "chainId": "0x2105", @@ -15150,21 +14940,6 @@ describe('NetworkController', () => { }, ], }, - "0x531": { - "blockExplorerUrls": [], - "chainId": "0x531", - "defaultRpcEndpointIndex": 0, - "name": "Sei Mainnet", - "nativeCurrency": "SEI", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "sei-mainnet", - "type": "infura", - "url": "https://sei-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x89": { "blockExplorerUrls": [], "chainId": "0x89", @@ -15225,21 +15000,6 @@ describe('NetworkController', () => { }, ], }, - "0xa86a": { - "blockExplorerUrls": [], - "chainId": "0xa86a", - "defaultRpcEndpointIndex": 0, - "name": "Avalanche Mainnet", - "nativeCurrency": "AVAX", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "avalanche-mainnet", - "type": "infura", - "url": "https://avalanche-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0xaa36a7": { "blockExplorerUrls": [], "chainId": "0xaa36a7", @@ -15319,36 +15079,6 @@ describe('NetworkController', () => { }, ], }, - "0x10e6": { - "blockExplorerUrls": [], - "chainId": "0x10e6", - "defaultRpcEndpointIndex": 0, - "name": "MegaETH Mainnet", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "megaeth-mainnet", - "type": "infura", - "url": "https://megaeth-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, - "0x144": { - "blockExplorerUrls": [], - "chainId": "0x144", - "defaultRpcEndpointIndex": 0, - "name": "ZKsync Era", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "zksync-mainnet", - "type": "infura", - "url": "https://zksync-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x2105": { "blockExplorerUrls": [], "chainId": "0x2105", @@ -15379,21 +15109,6 @@ describe('NetworkController', () => { }, ], }, - "0x531": { - "blockExplorerUrls": [], - "chainId": "0x531", - "defaultRpcEndpointIndex": 0, - "name": "Sei Mainnet", - "nativeCurrency": "SEI", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "sei-mainnet", - "type": "infura", - "url": "https://sei-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x89": { "blockExplorerUrls": [], "chainId": "0x89", @@ -15454,21 +15169,6 @@ describe('NetworkController', () => { }, ], }, - "0xa86a": { - "blockExplorerUrls": [], - "chainId": "0xa86a", - "defaultRpcEndpointIndex": 0, - "name": "Avalanche Mainnet", - "nativeCurrency": "AVAX", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "avalanche-mainnet", - "type": "infura", - "url": "https://avalanche-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0xaa36a7": { "blockExplorerUrls": [], "chainId": "0xaa36a7", @@ -15548,36 +15248,6 @@ describe('NetworkController', () => { }, ], }, - "0x10e6": { - "blockExplorerUrls": [], - "chainId": "0x10e6", - "defaultRpcEndpointIndex": 0, - "name": "MegaETH Mainnet", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "megaeth-mainnet", - "type": "infura", - "url": "https://megaeth-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, - "0x144": { - "blockExplorerUrls": [], - "chainId": "0x144", - "defaultRpcEndpointIndex": 0, - "name": "ZKsync Era", - "nativeCurrency": "ETH", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "zksync-mainnet", - "type": "infura", - "url": "https://zksync-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x2105": { "blockExplorerUrls": [], "chainId": "0x2105", @@ -15608,21 +15278,6 @@ describe('NetworkController', () => { }, ], }, - "0x531": { - "blockExplorerUrls": [], - "chainId": "0x531", - "defaultRpcEndpointIndex": 0, - "name": "Sei Mainnet", - "nativeCurrency": "SEI", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "sei-mainnet", - "type": "infura", - "url": "https://sei-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0x89": { "blockExplorerUrls": [], "chainId": "0x89", @@ -15683,21 +15338,6 @@ describe('NetworkController', () => { }, ], }, - "0xa86a": { - "blockExplorerUrls": [], - "chainId": "0xa86a", - "defaultRpcEndpointIndex": 0, - "name": "Avalanche Mainnet", - "nativeCurrency": "AVAX", - "rpcEndpoints": [ - { - "failoverUrls": [], - "networkClientId": "avalanche-mainnet", - "type": "infura", - "url": "https://avalanche-mainnet.infura.io/v3/{infuraProjectId}", - }, - ], - }, "0xaa36a7": { "blockExplorerUrls": [], "chainId": "0xaa36a7", From e5444fec57f39c42d8fee78ee760ef33f06466d7 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 21:24:56 +0200 Subject: [PATCH 03/10] update changelogs --- packages/controller-utils/CHANGELOG.md | 4 ++++ packages/network-controller/CHANGELOG.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/packages/controller-utils/CHANGELOG.md b/packages/controller-utils/CHANGELOG.md index cbe4120560..8f6f3fdfad 100644 --- a/packages/controller-utils/CHANGELOG.md +++ b/packages/controller-utils/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add `defaultInfuraNetworks` with Infura network names to be enabled by default ([#8767](https://github.com/MetaMask/core/pull/8767)) + ## [12.0.0] ### Changed diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index 305e4b6002..63f482f89f 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Use `defaultInfuraNetworks` from `controller-utils` as list of Infura networks ([#8767](https://github.com/MetaMask/core/pull/8767)) + - The list of networks is used to determine which networks should be included in NetworkController's default state when constructed with an empty state. + ## [31.1.0] ### Added From 459b2e44798ecb5d17575182a6d1dcad19b58671 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 21:35:43 +0200 Subject: [PATCH 04/10] update `controller-utils` test snapshots --- packages/controller-utils/src/index.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/controller-utils/src/index.test.ts b/packages/controller-utils/src/index.test.ts index 4187876c27..0535867971 100644 --- a/packages/controller-utils/src/index.test.ts +++ b/packages/controller-utils/src/index.test.ts @@ -81,6 +81,7 @@ describe('@metamask/controller-utils', () => { "weiHexToGweiDec", "isEqualCaseInsensitive", "InfuraNetworkType", + "defaultInfuraNetworks", "CustomNetworkType", "NetworkType", "isNetworkType", From dbadfd5caa31aa826fc8425851a2d72853a02b48 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 21:57:20 +0200 Subject: [PATCH 05/10] rename to `DEFAULT_INFURA_NETWORKS` and narrow type --- packages/controller-utils/src/types.ts | 4 ++-- packages/network-controller/src/NetworkController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/controller-utils/src/types.ts b/packages/controller-utils/src/types.ts index d5a69be6ff..f23ebb1deb 100644 --- a/packages/controller-utils/src/types.ts +++ b/packages/controller-utils/src/types.ts @@ -29,7 +29,7 @@ export type InfuraNetworkType = * This is a subset of the full list of {@link InfuraNetworkType}, and can be used to determine * which Infura networks to enable by default. */ -export const defaultInfuraNetworks: InfuraNetworkType[] = [ +export const DEFAULT_INFURA_NETWORKS = [ InfuraNetworkType.mainnet, InfuraNetworkType.goerli, InfuraNetworkType.sepolia, @@ -42,7 +42,7 @@ export const defaultInfuraNetworks: InfuraNetworkType[] = [ InfuraNetworkType['optimism-mainnet'], InfuraNetworkType['polygon-mainnet'], InfuraNetworkType['monad-mainnet'], -]; +] as const satisfies InfuraNetworkType[]; /** * Custom network types that are not part of Infura. diff --git a/packages/network-controller/src/NetworkController.ts b/packages/network-controller/src/NetworkController.ts index 65cc9ca33d..ebadfb9dff 100644 --- a/packages/network-controller/src/NetworkController.ts +++ b/packages/network-controller/src/NetworkController.ts @@ -16,7 +16,7 @@ import { NetworkNickname, BUILT_IN_CUSTOM_NETWORKS_RPC, BUILT_IN_NETWORKS, - defaultInfuraNetworks, + DEFAULT_INFURA_NETWORKS, } from '@metamask/controller-utils'; import type { PollingBlockTrackerOptions } from '@metamask/eth-block-tracker'; import EthQuery from '@metamask/eth-query'; @@ -808,7 +808,7 @@ function getDefaultInfuraNetworkConfigurationsByChainId(): Record< Hex, NetworkConfiguration > { - return defaultInfuraNetworks.reduce>( + return DEFAULT_INFURA_NETWORKS.reduce>( (obj, infuraNetworkType) => { const chainId = ChainId[infuraNetworkType]; From 2cb09c511fd284387cd42251f06fd21e631c080d Mon Sep 17 00:00:00 2001 From: Michele Esposito <34438276+mikesposito@users.noreply.github.com> Date: Mon, 11 May 2026 22:01:24 +0200 Subject: [PATCH 06/10] Update packages/network-controller/CHANGELOG.md Co-authored-by: Elliot Winkler --- packages/network-controller/CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index 63f482f89f..d04692b878 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -9,8 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Use `defaultInfuraNetworks` from `controller-utils` as list of Infura networks ([#8767](https://github.com/MetaMask/core/pull/8767)) - - The list of networks is used to determine which networks should be included in NetworkController's default state when constructed with an empty state. +### Changed + +- **BREAKING:** Remove Sei, MegaETH, Avalanche, and ZKSync from list of default networks ([#8767](https://github.com/MetaMask/core/pull/8767)) + - You will need to add them as network configurations first before switching to them. ## [31.1.0] From 20b37196b0291ab72f55d97813dc00f7660cddf9 Mon Sep 17 00:00:00 2001 From: Michele Esposito <34438276+mikesposito@users.noreply.github.com> Date: Mon, 11 May 2026 22:01:43 +0200 Subject: [PATCH 07/10] Update packages/controller-utils/CHANGELOG.md Co-authored-by: Elliot Winkler --- packages/controller-utils/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/controller-utils/CHANGELOG.md b/packages/controller-utils/CHANGELOG.md index 8f6f3fdfad..b271c0cdfe 100644 --- a/packages/controller-utils/CHANGELOG.md +++ b/packages/controller-utils/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add `defaultInfuraNetworks` with Infura network names to be enabled by default ([#8767](https://github.com/MetaMask/core/pull/8767)) +- Add `DEFAULT_INFURA_NETWORKS` with Infura network names to be enabled by default ([#8767](https://github.com/MetaMask/core/pull/8767)) ## [12.0.0] From 49e2b6ed3cd09bee6acb2f5ddcd862e175afffa5 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 22:02:46 +0200 Subject: [PATCH 08/10] update test snapshots --- packages/controller-utils/src/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/controller-utils/src/index.test.ts b/packages/controller-utils/src/index.test.ts index 0535867971..ab32df1aa9 100644 --- a/packages/controller-utils/src/index.test.ts +++ b/packages/controller-utils/src/index.test.ts @@ -81,7 +81,7 @@ describe('@metamask/controller-utils', () => { "weiHexToGweiDec", "isEqualCaseInsensitive", "InfuraNetworkType", - "defaultInfuraNetworks", + "DEFAULT_INFURA_NETWORKS", "CustomNetworkType", "NetworkType", "isNetworkType", From afa63f766fedd763c5ff8671c6de5acfb8296088 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 22:48:25 +0200 Subject: [PATCH 09/10] fix `controller-utils` changelog --- packages/network-controller/CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index d04692b878..461f093502 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -9,8 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -### Changed - - **BREAKING:** Remove Sei, MegaETH, Avalanche, and ZKSync from list of default networks ([#8767](https://github.com/MetaMask/core/pull/8767)) - You will need to add them as network configurations first before switching to them. From 0f8fa8c0705f5ceb9b629e9b831749e408f4e3d3 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Mon, 11 May 2026 22:54:55 +0200 Subject: [PATCH 10/10] trim changelog entry --- packages/network-controller/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index 461f093502..fc10c79f9c 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - **BREAKING:** Remove Sei, MegaETH, Avalanche, and ZKSync from list of default networks ([#8767](https://github.com/MetaMask/core/pull/8767)) - - You will need to add them as network configurations first before switching to them. + - You will need to add them as network configurations first before switching to them. ## [31.1.0]