Skip to content

🐛 fix: Add range validation for SSZ uint8/16/32 encoding#279

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-82-ssz-range
Jan 4, 2026
Merged

🐛 fix: Add range validation for SSZ uint8/16/32 encoding#279
roninjin10 merged 1 commit intomainfrom
fix/issue-82-ssz-range

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Overflow values rejected
  • Negative values rejected
  • Non-integers rejected
  • Max boundary values accepted

🤖 Generated with Claude Code

Fixes #82. SSZ encodeBasic now validates uint8/16/32 values are within their
respective ranges (0-255, 0-65535, 0-4294967295) and throws RangeError for
out-of-range or non-integer values.

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

@roninjin10 roninjin10 merged commit bf4c67e 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: SSZ uint8/16/32 range validation missing

1 participant

Comments