Commit 872d9fa
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
+387
-17
lines changed
0 commit comments