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

fix: export hashStruct #3103

Merged
merged 2 commits into from
Dec 7, 2024
Merged

fix: export hashStruct #3103

merged 2 commits into from
Dec 7, 2024

Conversation

iamacook
Copy link
Contributor

@iamacook iamacook commented Dec 6, 2024

Summary

It is not possible to import hashStruct. This method is useful should a contract not follow EIP-712.

This exports hashStruct and the associated HashStructErrorType.

Note: there is also an open discussion requesting this change.

Changes

  • Export HashStructErrorType
  • Import hashStruct and HashStructErrorType in both index and /utils

Copy link

changeset-bot bot commented Dec 6, 2024

🦋 Changeset detected

Latest commit: 4bb0a90

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
viem ✅ Ready (Inspect) Visit Preview Dec 7, 2024 6:42am

Copy link

vercel bot commented Dec 6, 2024

@iamacook is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@jxom
Copy link
Member

jxom commented Dec 7, 2024

Feel free to check out Ox for lower-level utilities too: https://oxlib.sh/api/TypedData/hashStruct

@jxom jxom merged commit 42fbfca into wevm:main Dec 7, 2024
8 of 18 checks passed
@github-actions github-actions bot mentioned this pull request Dec 6, 2024
@tmm tmm mentioned this pull request Dec 21, 2024
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 this pull request may close these issues.

2 participants