@metamask-previews/network-controller 23.1.0-preview-cff14565 → 23.1.0-preview-8365901

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,6 +129,10 @@ function getDefaultNetworkConfigurationsByChainId(additionalDefaultNetworks = []
129
129
  function getDefaultInfuraNetworkConfigurationsByChainId() {
130
130
  return Object.values(controller_utils_1.InfuraNetworkType).reduce((obj, infuraNetworkType) => {
131
131
  const chainId = controller_utils_1.ChainId[infuraNetworkType];
132
+ // Skip deprecated network as default network.
133
+ if (constants_1.DEPRECATED_NETWORKS.has(chainId)) {
134
+ return obj;
135
+ }
132
136
  const rpcEndpointUrl =
133
137
  // This ESLint rule mistakenly produces an error.
134
138
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions