MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
291 stars 188 forks source link

[network-controller] Validate that selected network state is recognized #1461

Open Gudahtt opened 1 year ago

Gudahtt commented 1 year ago

Add validation to ensure that the selected network state (providerConfig) is either a built-in network or matching a custom network configuration.

This would allow us to simplify the controller by removing all logic related to handling unrecognized provider configuration state.

Gudahtt commented 1 year ago

It would probably be easier to do #1462 before this

mcmire commented 3 weeks ago

Is this relevant anymore now that providerConfig has been removed?