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(sol-macro): encode UDVTs as their underlying type in EIP-712 #220

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Aug 2, 2023

Motivation

Fixes #219

Solution

Check for UDVTs when computing struct eip712 root type and signature.
Also implement EventTopic for UDVTs declared with the macro, as it is also needed.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@DaniPopes DaniPopes force-pushed the dani/sol-udt-structs branch 5 times, most recently from 7d24bf6 to a901d97 Compare August 2, 2023 13:33
@DaniPopes DaniPopes changed the base branch from dani/sol-var-functions to main August 2, 2023 19:46
@DaniPopes DaniPopes marked this pull request as ready for review August 2, 2023 19:46
@DaniPopes DaniPopes merged commit 4f7a72c into main Aug 2, 2023
@DaniPopes DaniPopes deleted the dani/sol-udt-structs branch August 2, 2023 22:12
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.

[Bug] sol! fails for structs with UDVT fields
2 participants