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

SetChain in multi chain doesn't work #837

Closed
InfiniteAengus opened this issue Jul 17, 2024 · 3 comments · Fixed by #852
Closed

SetChain in multi chain doesn't work #837

InfiniteAengus opened this issue Jul 17, 2024 · 3 comments · Fixed by #852
Labels
bug Something isn't working

Comments

@InfiniteAengus
Copy link

Thanks for filling out this bug report. Please provide as much detail as possible.

If your issue is with our RPC APIs and not the SDK please report your issue on (discord)[https://alchemy.com/discord].

[REQUIRED] Environment

  • Browser version:
  • AA SDK version: 3.18.2
  • Package:

[REQUIRED] Describe the problem

I created a config to have multi chain by setting connections in config, but setChain from useChain hook doesn't work.

How to reproduce:

Relevant code or sample repro:

@InfiniteAengus InfiniteAengus added the bug Something isn't working label Jul 17, 2024
@LeifuChen
Copy link

@InfiniteAengus I encountered the same issue. The correct way to use the function is setChain({ chain: xxx }). The documentation needs to be updated.

@InfiniteAengus
Copy link
Author

@InfiniteAengus I encountered the same issue. The correct way to use the function is setChain({ chain: xxx }). The documentation needs to be updated.

Thank you. seems like it's working

@avarobinson avarobinson linked a pull request Jul 22, 2024 that will close this issue
7 tasks
@avarobinson
Copy link
Collaborator

@InfiniteAengus @LeifuChen Sorry about this! Glad you were able to debug and I've updated the doc. Thanks a lot for flagging 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants