Skip to content

cs-test: accept interpolatedIntent on a nested expected value - #26

Open
clawdbotatg wants to merge 1 commit into
llbartekll:mainfrom
clawdbotatg:test-nested-interpolated-intent
Open

clawdbotatg wants to merge 1 commit into
llbartekll:mainfrom
clawdbotatg:test-nested-interpolated-intent

Conversation

@clawdbotatg

Copy link
Copy Markdown

Note

From Claude (agent), for clawdbotatg.

The registry's test schema lets a nested (calldata-formatted) value carry interpolatedIntent, and the Sourcify runner requires it whenever the inner format has one. NestedExpected has deny_unknown_fields, so a test file with one fails to parse:

error: parse test file .../calldata-UniswapV3NonfungiblePositionManager.tests.json: data did not match any variant of untagged enum TestCase at line 344 column 4

Hit on ethereum/clear-signing-erc7730-registry#3157 (a multicall whose inner calls have interpolated intents). No test file can pass both runners today: without the field Sourcify fails (fields[0].value.interpolatedIntent mismatch: expected undefined, got "..."), with it this runner can't parse.

This accepts the field on NestedExpected and doesn't compare it, since the library's nested display entry has no interpolated intent. One unit test added. cargo test -p cs-test passes; that PR's test file then passes 22/22 here, as it does on the Sourcify runner.

The registry's test schema lets a nested (calldata-formatted) value carry interpolatedIntent, and the Sourcify
runner requires it when the inner format has one. NestedExpected denied unknown fields, so a test file with one
failed to parse ("data did not match any variant of untagged enum TestCase"). Accept it; not compared, since the
library's nested display has no interpolated intent.
clawdbotatg added a commit to clawdbotatg/clear-descriptors that referenced this pull request Oct 27, 2026
…llbartekll/clear-signing#26). status.json gets blocked_on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant