Skip to content

✅ test: Document ABI decoding handles dynamic offsets correctly#270

Merged
roninjin10 merged 1 commit intomainfrom
fix/issue-104-abi-decode
Jan 4, 2026
Merged

✅ test: Document ABI decoding handles dynamic offsets correctly#270
roninjin10 merged 1 commit intomainfrom
fix/issue-104-abi-decode

Conversation

@roninjin10
Copy link
Contributor

Summary

Test plan

  • Multiple dynamic params
  • Mixed static and dynamic
  • Nested dynamic types
  • Tuples with dynamic fields

🤖 Generated with Claude Code

…decoding

Closes #104

After investigation, the ABI decodeParameters/decodeValue implementation
correctly handles dynamic type offsets. Added 6 tests documenting behavior:
- Multiple dynamic params (bytes, string, bytes)
- Multiple strings (string, string, string)
- Mixed static/dynamic (uint256, bytes, uint256, string, uint256)
- Dynamic arrays with dynamic types (bytes[], string, bytes)
- Alternating static/dynamic (address, bytes, address, string)
- Tuples with multiple dynamic fields

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

@roninjin10 roninjin10 merged commit 1057fed 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: ABI.decodeParameters doesn't handle bytes/string offsets correctly

1 participant