@metamask-previews/network-controller 27.1.0-preview-4f3e9ca7 → 27.1.0-preview-67bc4e39

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Changed
11
11
 
12
12
  - Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
13
+ - Remove dependency on `@metamask/error-reporting-service` ([#7542](https://github.com/MetaMask/core/pull/7542))
14
+ - The service no longer needs `ErrorReportingService:captureException`.
13
15
 
14
16
  ## [27.1.0]
15
17
 
@@ -339,14 +339,14 @@ function correctInitialState(state, messenger) {
339
339
  if (!availableNetworkClientIds.includes(state.selectedNetworkClientId)) {
340
340
  const firstNetworkConfiguration = networkConfigurationsSortedByChainId[0];
341
341
  const newSelectedNetworkClientId = firstNetworkConfiguration.rpcEndpoints[firstNetworkConfiguration.defaultRpcEndpointIndex].networkClientId;
342
- messenger.call('ErrorReportingService:captureException', new Error(`\`selectedNetworkClientId\` '${state.selectedNetworkClientId}' does not refer to an RPC endpoint within a network configuration; correcting to '${newSelectedNetworkClientId}'`));
342
+ messenger.captureException?.(new Error(`\`selectedNetworkClientId\` '${state.selectedNetworkClientId}' does not refer to an RPC endpoint within a network configuration; correcting to '${newSelectedNetworkClientId}'`));
343
343
  newState.selectedNetworkClientId = newSelectedNetworkClientId;
344
344
  }
345
345
  if (invalidNetworkClientIdsWithMetadata.length > 0) {
346
346
  for (const invalidNetworkClientId of invalidNetworkClientIdsWithMetadata) {
347
347
  delete newState.networksMetadata[invalidNetworkClientId];
348
348
  }
349
- messenger.call('ErrorReportingService:captureException', new Error('`networksMetadata` had invalid network client IDs, which have been removed'));
349
+ messenger.captureException?.(new Error('`networksMetadata` had invalid network client IDs, which have been removed'));
350
350
  }
351
351
  });
352
352
  }