Skip to content

🐛 fix: Add EIP712Domain field validation#273

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-99-typeddata
Jan 4, 2026
Merged

🐛 fix: Add EIP712Domain field validation#273
roninjin10 merged 1 commit intomainfrom
fix/issue-99-typeddata

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • 14 new validation tests
  • Invalid types rejected
  • Valid types accepted
  • Unknown fields rejected

🤖 Generated with Claude Code

- Add Eip712InvalidDomainError for invalid domain field values
- Validate name and version are strings
- Validate chainId is bigint, number, or Uint8Array
- Validate verifyingContract is address type (20 bytes)
- Validate salt is bytes32 type (32 bytes)
- Reject unknown domain fields
- Add comprehensive tests for domain validation

Fixes #99

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dist Error Error Jan 4, 2026 10:54am
voltaire Error Error Jan 4, 2026 10:54am

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: TypedData.hashStruct doesn't validate EIP712Domain fields

1 participant