Skip to content

Commit 872d9fa

Browse files
fubhyclaude
andcommitted
core: Support struct field access in declarative calls
Add support for accessing struct fields in declarative calls using numeric indices (e.g., event.params.asset.1). Previously, attempting to use struct field access would fail with parsing errors. Changes: - Add EthereumArg::ParamField variant to support param.field patterns - Update CallArg parser to handle 4-part patterns like event.params.asset.1 - Enhance address_for_log and args_for_log to extract struct fields - Include declarative call labels in error messages for better debugging - Add comprehensive tests for struct field access and error scenarios Fixes #6059 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ef0f02b commit 872d9fa

1 file changed

Lines changed: 387 additions & 17 deletions

File tree

0 commit comments

Comments
 (0)