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

Hooks to use SDK with wagmi is outdated #22

Open
MidnightLightning opened this issue Feb 14, 2024 · 0 comments
Open

Hooks to use SDK with wagmi is outdated #22

MidnightLightning opened this issue Feb 14, 2024 · 0 comments

Comments

@MidnightLightning
Copy link

The documentation at https://docs.attest.sh/docs/developer-tools/sdk-wagmi links to a gist at https://gist.github.com/slavik0329/2e5b6fc31cb745b65d3d37f7cf1d7b36 for hooks to use to convert wagmi objects for use with the EAS SDK (ethers).

However, the EAS SDK uses ethers v6, and that gist is written for ethers v5 (it references a providers export of Ethers, which was moved in v6).

Attempting to install ethers v5 for that script results in an error in the SDK ("Incompatible ethers version detect. Make sure to use the SDK with ethers v6 or later"), so v6 has to be used.

Therefore, those hooks should be updated for ethers v6 and the documentation updated to include the newer option.

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

1 participant