@metamask-previews/network-controller 29.0.0-preview-d01b2f93d → 29.0.0-preview-bc3c2ef97

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.
@@ -1301,8 +1301,7 @@ async function _NetworkController_determineEIP1559Compatibility(networkClientId)
1301
1301
  !(0, controller_utils_1.isSafeChainId)(networkFields.chainId)) {
1302
1302
  throw new Error(`${errorMessagePrefix}: Invalid \`chainId\` '${networkFields.chainId}' (must start with "0x" and not exceed the maximum)`);
1303
1303
  }
1304
- if (existingNetworkConfiguration === null ||
1305
- networkFields.chainId !== existingNetworkConfiguration.chainId) {
1304
+ if (networkFields.chainId !== existingNetworkConfiguration?.chainId) {
1306
1305
  const existingNetworkConfigurationViaChainId = this.state.networkConfigurationsByChainId[networkFields.chainId];
1307
1306
  if (existingNetworkConfigurationViaChainId !== undefined) {
1308
1307
  if (existingNetworkConfiguration === null) {