@metamask-previews/network-controller 32.0.0-preview-a65eb72 → 32.0.0-preview-c5f8cd0af
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 +1 -0
- package/dist/NetworkController.cjs +3 -1
- package/dist/NetworkController.cjs.map +1 -1
- package/dist/NetworkController.d.cts.map +1 -1
- package/dist/NetworkController.d.mts.map +1 -1
- package/dist/NetworkController.mjs +3 -1
- package/dist/NetworkController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
20
20
|
### Fixed
|
|
21
21
|
|
|
22
22
|
- Add defaults for `fetch`, `btoa` and `isOffline` in `RpcServiceOptions` ([#9000](https://github.com/MetaMask/core/pull/9000))
|
|
23
|
+
- Ensure block explorer URLs are populated for default networks ([#9005](https://github.com/MetaMask/core/pull/9005))
|
|
23
24
|
|
|
24
25
|
## [32.0.0]
|
|
25
26
|
|
|
@@ -159,8 +159,10 @@ function getDefaultInfuraNetworkConfigurationsByChainId() {
|
|
|
159
159
|
return obj;
|
|
160
160
|
}
|
|
161
161
|
const rpcEndpointUrl = `https://${infuraNetworkType}.infura.io/v3/{infuraProjectId}`;
|
|
162
|
+
const { rpcPrefs } = controller_utils_1.BUILT_IN_NETWORKS[infuraNetworkType];
|
|
162
163
|
const networkConfiguration = {
|
|
163
|
-
blockExplorerUrls: [],
|
|
164
|
+
blockExplorerUrls: [rpcPrefs.blockExplorerUrl],
|
|
165
|
+
defaultBlockExplorerUrlIndex: 0,
|
|
164
166
|
chainId,
|
|
165
167
|
defaultRpcEndpointIndex: 0,
|
|
166
168
|
name: controller_utils_1.NetworkNickname[infuraNetworkType],
|