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

wagmi support #168

Open
BerkliumBirb opened this issue Aug 26, 2023 · 2 comments
Open

wagmi support #168

BerkliumBirb opened this issue Aug 26, 2023 · 2 comments

Comments

@BerkliumBirb
Copy link
Contributor

SUMMARY

There's no instruction on how to set up wagmi with sapphire paratime.

ISSUE TYPE
  • Bug Report
@nhynes
Copy link
Contributor

nhynes commented Aug 28, 2023

I believe that you can sapphire.wrap(window.ethereum) before wagmi loads and that will generally work.

I have a PR that adds explicit Viem support, but you could also sapphire.wrap your Viem instance because it supports the one EIP about request.

@BerkliumBirb
Copy link
Contributor Author

sapphire.wrap(window.ethereum)

This won't work for Wallet Connect and others.

Viem instance

You mean Public Client or Wallet Client?

I would also note, that in reality it's more crucial to have wrapper around wagmi:Connector's methods getProvider and getWalletClient because many connectors provide custom ones.

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

No branches or pull requests

2 participants