Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: wallet_switchEthereumChain no longer returns Unrecognized chain ID and returns null instead #12502

Closed
christopherferreira9 opened this issue Nov 29, 2024 · 2 comments
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

Comments

@christopherferreira9
Copy link
Contributor

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:

  • Error 4902
  • Unrecognized chain ID. Try adding the chain using wallet_addEthereumChain first.

See https://docs.metamask.io/wallet/reference/json-rpc-methods/wallet_switchethereumchain/

Screenshots/Recordings

No response

Steps to reproduce

  1. Go to https://switch-chain-issue-m6vyexrc9-christopherferreira9s-projects.vercel.app/
  2. Connect to the dapp
  3. Without having Filecoin network added tap "switch to Filecoin"
  4. see the console logs and look for the response log

Error 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

@christopherferreira9 christopherferreira9 added the type-bug Something isn't working label Nov 29, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Nov 29, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Nov 29, 2024
@christopherferreira9 christopherferreira9 added the Sev1-high An issue that may have caused fund loss or access to wallet in the past & may still be ongoing label Nov 29, 2024
@metamaskbot metamaskbot added the regression-RC-7.37.0 Regression bug that was found in release candidate (RC) for release 7.37.0 label Nov 29, 2024
@Unik0rnMaggie
Copy link
Contributor

Possibly related:

Error on Pancakeswap when switching networks on the dapp page. But the network is switched in the MetaMask app.

When trying to swap, error on dapp page and page needs to be reloaded in order for the swap to work.

Screen.Recording.2024-12-02.at.12.28.00.mov

Screenshot 2024-12-02 at 12 32 47
Screenshot 2024-12-02 at 12 47 20

@christopherferreira9
Copy link
Contributor Author

Closing as it seems to not be applicable since the latest RC was created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Archived in project
Status: Fixed
Development

No branches or pull requests

3 participants