Skip to main content
Call context identifies the function call that dispatched an assertion. Use its start and end snapshots to evaluate that operation, rather than only the whole transaction’s endpoints.

Status

Spec: Reshiram. Evidence: API reference, with a tested local oracle fixture illustrating a post-call check. That fixture does not establish coverage for every batching or proxy design.

API and Behavior

Snapshot Selection

Use the same matched context for both reads. When inspecting arguments, require a matching call record before decoding it; a default or unrelated record is not a substitute.

Choosing the Observation Boundary

A transaction can update an oracle twice, first outside the policy’s bounds and then back inside them. An endpoint-only check can miss that excursion. The oracle fixture checks covered updates separately and tests this change-and-restore case. For a transfer policy, compare balances across the covered external call and define the expected result for self-transfers, fees, and nested operations. An internal Solidity function invocation does not necessarily create a separate EVM call frame; a batch function therefore needs its own coverage analysis.

Coverage Limits

A call’s end snapshot includes changes made by its nested execution. Recursive calls, alternate selectors, delegatecalls, and proxy storage require explicit tests. Checking one selected frame does not establish that all state-changing paths dispatch the assertion.