Behavior for NetworkController.findNetworkClientIdByChainId
method/action is potentially surprising if more than one network has same chain ID
#3686
Labels
This method returns the network client that hits the chain with the given identifier. This is a problem because more than one network client can be assigned to the same chain ID. This method just returns the first one that matches, but that may not be the network client that the consumer expected, especially if the user has added a custom network that overrides a built-in one (for instance, Mainnet).
The text was updated successfully, but these errors were encountered: