mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
In the core version of NetworkController, when the `setActiveNetwork` method updates the provider configuration object, it will capture the ID of the network configuration used to do so within the provider config itself. In the same way, `setProviderType` clears any ID that was previously set from the provider config. This commit updates this version of NetworkController to be consistent and updates tests to match.