1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app/scripts/controllers/network
Elliot Winkler db45a0aef4
setActiveNetwork captures network config ID (#19404)
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.
2023-06-06 14:10:45 -06:00
..
provider-api-tests test: sanitize url hostname check (#19053) 2023-05-18 00:09:20 +09:00
test Use fake provider for NetworkController unit tests (#18628) 2023-04-20 15:21:41 -02:30
create-network-client.test.ts Convert NetworkController net client tests to TS (#18490) 2023-04-14 10:21:29 -06:00
create-network-client.ts Refactor network client constructor (#17652) 2023-03-22 17:20:59 -05:00
index.ts Convert NetworkController to TS (#18358) 2023-04-11 10:07:24 -06:00
network-controller.test.ts setActiveNetwork captures network config ID (#19404) 2023-06-06 14:10:45 -06:00
network-controller.ts setActiveNetwork captures network config ID (#19404) 2023-06-06 14:10:45 -06:00