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

Can't switch chain with universalWalletConnector #22

Closed
robyn3choi opened this issue Mar 27, 2024 · 2 comments · Fixed by Alexandria-Labs/wagmi-magic-connector#1
Closed

Comments

@robyn3choi
Copy link

Describe the bug
When connected with the universal wallet connector, calling the switchChain method from wagmi's useSwitchChain hook doesn't do anything. I also noticed that the universal wallet connector doesn't have a switchChain method on it.

To Reproduce
Steps to reproduce the behavior:

  1. add universalWalletConnector as a connector in wagmi's createConfig(), making sure to include all chains and networks.
  2. Connect with that connector
  3. Call switchChain from the useSwitchChain hook

Expected behavior
It should switch chains.

Desktop (please complete the following information):

  • OS: macOS 14
  • Browser: Google Chrome
  • Version 123.0.6312.59
@ninemachines
Copy link

@joshuascan just a note that this issue can be closed as we have merged the associated PR. Thank you again!

@joshuascan
Copy link
Member

@ninemachines Thanks again for this contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants