Skip to content

🐛 fix: Validate leading zeros in Address.fromAbiEncoded#282

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-75-address-abiencode
Jan 4, 2026
Merged

🐛 fix: Validate leading zeros in Address.fromAbiEncoded#282
roninjin10 merged 1 commit intomainfrom
fix/issue-75-address-abiencode

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Valid zero padding accepted
  • Non-zero padding rejected
  • Error includes position and byte value

🤖 Generated with Claude Code

Address.fromAbiEncoded now validates that the first 12 bytes of
ABI-encoded data are all zeros, per the ABI specification. Previously
non-zero padding was silently ignored.

Fixes #75

🤖 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 0:08am
voltaire Error Error Jan 4, 2026 0:08am

@roninjin10 roninjin10 merged commit 2767f54 into main Jan 4, 2026
19 of 48 checks passed
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: Address.fromAbiEncoded doesn't validate leading zeros

1 participant