[Bug]: wallet_switchEthereumChain
no longer returns Unrecognized chain ID and returns null instead
#12502
Labels
regression-RC-7.37.0
Regression bug that was found in release candidate (RC) for release 7.37.0
Sev1-high
An issue that may have caused fund loss or access to wallet in the past & may still be ongoing
type-bug
Something isn't working
Describe the bug
Calling
wallet_switchEthereumChain
no longer returns Unrecognized chain ID if the chain hasn't been added before.Expected behavior
Given that the chain wasn't added before it should return:
See https://docs.metamask.io/wallet/reference/json-rpc-methods/wallet_switchethereumchain/
Screenshots/Recordings
No response
Steps to reproduce
response
logError messages or log output
No response
Detection stage
During release testing
Version
7.37.0
Build type
None
Device
iPhone 11
Operating system
iOS
Additional context
No response
Severity
No response
The text was updated successfully, but these errors were encountered: