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: useSwitchChain fails to add new chain to MetaMask #3252

Closed
1 task done
aquaticone opened this issue Nov 27, 2023 · 1 comment
Closed
1 task done

bug: useSwitchChain fails to add new chain to MetaMask #3252

aquaticone opened this issue Nov 27, 2023 · 1 comment

Comments

@aquaticone
Copy link
Contributor

aquaticone commented Nov 27, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

2.0.0-beta.5

Current Behavior

  1. User goes to switch to a new chain that is not configured in MetaMask
  2. Request to wallet_addEthereumChain fails due to invalid RPC URLs

Expected Behavior

  1. User goes to switch to a new chain that is not configured in MetaMask
  2. MetaMask prompts user to add the chain

Steps To Reproduce

No response

Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)

No response

Anything else?

It looks like the chains were all updated with only rpcUrls.default defined (rpcUrls.public no longer defined).

Fix PR'd - #3251

@tmm tmm closed this as completed Nov 27, 2023
Copy link
Contributor

github-actions bot commented Jan 5, 2024

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest wagmi version. If you have any other comments you can create a new discussion.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants