Skip to content

🐛 fix: Validate storage key format in AccessList.from()#278

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-88-accesslist
Jan 4, 2026
Merged

🐛 fix: Validate storage key format in AccessList.from()#278
roninjin10 merged 1 commit intomainfrom
fix/issue-88-accesslist

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Invalid storage key length rejected
  • Non-Uint8Array storage keys rejected
  • Invalid address length rejected
  • Non-array inputs rejected

🤖 Generated with Claude Code

AccessList.from() now validates that storage keys are exactly 32 bytes
when receiving array input. Previously, arrays were passed through without
validation, allowing malformed storage keys. The existing assertValid()
function is now called to ensure proper EIP-2930 compliance.

Closes #88

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

@roninjin10 roninjin10 merged commit ff1332c 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: AccessList.from() doesn't validate storage key format

1 participant