Skip to content

🐛 fix: SSZ boolean decoding rejects values > 1#286

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-70-ssz-bool
Jan 4, 2026
Merged

🐛 fix: SSZ boolean decoding rejects values > 1#286
roninjin10 merged 1 commit intomainfrom
fix/issue-70-ssz-bool

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Value 0 decodes to false
  • Value 1 decodes to true
  • Values 2-255 throw error

🤖 Generated with Claude Code

SSZ spec requires boolean to be exactly 0 or 1. Previously any non-zero
value was decoded as true. Now values > 1 throw InvalidBooleanValue.

Fixes #70

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

@roninjin10 roninjin10 merged commit 22e45e2 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 boolean decoding accepts any non-zero (should reject >1)

1 participant