-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix findNetworkClientIdByChainId to consider default endpoints
Currently, the `findNetworkClientIdByChainId` method in `NetworkController`, which is used in various places, mostly commonly TransactionController and the wallet middleware, returns the network client ID corresponding to the first listed RPC endpoint for the given chain. This may not match users' expectations if they have chosen another RPC endpoint as the default. This commit fixes the implementation of `findNetworkClientIdByChainId` to match this expectation.
- Loading branch information
Showing
3 changed files
with
89 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters