fix: make cast --json parsing compatible with foundry >= 1.8 - #266
Merged
Conversation
Since foundry 1.8.0, many cast --json commands wrap their output in a
versioned envelope {schema_version, success, data, errors, warnings}
(e.g. cast wallet new, cast decode-event). The (.data? // .) jq pattern
keeps working with both the old bare output and the new envelope.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
leovct
added a commit
to 0xPolygon/kurtosis-cdk
that referenced
this pull request
Aug 28, 2026
cast >= 1.8 wraps --json output in a versioned envelope {data,...},
which broke _setup_vars in agglayer/e2e (jq: Cannot index object with
number) in the op-succinct job, the only one running bats on the host
foundry. Pin the previous e2e commit + the compat fix (agglayer/e2e#266
backport); re-pin to main once merged.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
leovct
added a commit
to 0xPolygon/kurtosis-cdk
that referenced
this pull request
Aug 28, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Ekleog-Polygon
added a commit
to agglayer/agglayer
that referenced
this pull request
Aug 31, 2026
Dependabot only bumps the reusable-workflow ref on the `uses:` line, but the e2e test sources are checked out from the separate `agglayer-e2e-ref` input. Bump it to the same commit so the fix from agglayer/e2e#266 actually applies, and refresh the pin date comments (3a80868 is from 2026/08/28). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since foundry 1.8.0, many
cast --jsoncommands wrap their output in a versioned envelope{schema_version, success, data, errors, warnings}(e.g.cast wallet new,cast decode-event). This broke_setup_vars(jq: error: Cannot index object with number) on CI runners that install foundry >= 1.8, e.g. 0xPolygon/kurtosis-cdk#939 (run-with-op-succinct job, the only kurtosis-cdk job running bats on the host).The
(.data? // .)jq pattern keeps compatibility with both the old bare output and the new envelope. Fixed spots:core/helpers/common.bash:_setup_varsfoo walletcore/helpers/agglayer-cdk-common-setup.bash:_generate_and_fund_walletcore/helpers/scripts/bridging.bash:cast receipt+cast decode-eventfallback pathSame class of issue as 0xPolygon/pos-e2e#88.
🤖 Generated with Claude Code