Skip to content

test(cast): add tests for EIP-712 type names with colons #10772

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

Merged
merged 4 commits into from
Jun 20, 2025

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jun 13, 2025

Summary

Add test cases to ensure cast can parse EIP-712 typed data when type names contain colons, which are valid according to the EIP-712 specification.

Description

This PR adds two test cases:

  1. A test that verifies cast correctly handles EIP-712 type names containing colons (e.g., Test:Message)
  2. A test that verifies the same structure works without colons for comparison

These tests ensure that cast properly supports the full EIP-712 specification, including type names with colons as used by protocols like Hyperliquid.

Related Issues

Closes #10765

Notes

This PR depends on the fix in alloy-rs/core#963

Add test cases to ensure cast can parse EIP-712 typed data when type
names contain colons, which are valid according to the EIP-712
specification.

Closes #10765
@mattsse mattsse added the C-cast Command: cast label Jun 13, 2025
mattsse added 2 commits June 20, 2025 18:12
@mattsse mattsse marked this pull request as ready for review June 20, 2025 16:39
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@0xrusowsky 0xrusowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mattsse mattsse merged commit 2b3f9ff into master Jun 20, 2025
22 checks passed
@mattsse mattsse deleted the test/eip712-colon-type-names branch June 20, 2025 17:20
@github-project-automation github-project-automation bot moved this to Done in Foundry Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Cast Wallet Sign Does not work when colons are in type name
3 participants