Skip to content

Conversation

@rachit77
Copy link
Contributor

@rachit77 rachit77 commented Jun 6, 2025

Description

During an audit review, it was identified that several TestClaimCalldata cases were using identical MainnetExitRoot, RollupExitRoot, ProofLocalExitRoot, ProofRollupExitRoot, DestinationNetwork, Metadata, and—critically—GlobalExitRoot for multiple “reverted” and “non-reverted” claims. Because all three expectedClaim structs shared the same exit roots and hence produced identical ABI‐encoded calldata, these tests could not detect whether the code under test was mistakenly grabbing calldata from a reverted transaction instead of a successful one. In other words, if the debug tracer returned the calldata for the reverted claim rather than the non‐reverted claim, the test would still pass—because both claim calls were identical after encoding.

@rachit77 rachit77 self-assigned this Jun 6, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 6, 2025

@sonarqubecloud
Copy link

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.

5 participants