Block Matrix
Menu

Foundry nightly fixes Anvil’s simulated log numbering and Cast’s block-field lookups

Foundry’s December 6, 2026 nightly build changes how Anvil numbers simulated logs and how Cast reads block and receipt fields. In Anvil, simulateV1 now numbers logs the same way transaction receipts do. The numbering convention is shared; the logs returned by simulateV1 are still simulation output.

Anvil: simulations and block queries

Anvil now uses the node’s chain ID for simulateV1 transactions and rejects simulation calls at the maximum nonce. A separate filter fix stops Anvil from replaying logs from the current head block for latest filters.

The build also applies the genesis gas limit to later blocks and caps call gas when no block gas limit is set. Anvil now applies a requested time increase even when a timestamp interval is configured. For lookups, it returns a zero hash for missing blocks, accepts head and genesis as beacon block identifiers, and accepts short storage keys in getProof.

Cast: field lookup and display

cast block --field now reads fields at the root of the block response. Cast also reads network receipt fields by name. A separate output fix prints 32-byte network fields in hexadecimal; that change concerns how Cast displays a value, not the value itself.

Forge: coverage and regression tests

Forge now keys edge coverage in invariant tests by code hash. Coverage reports distinguish creation bytecode from runtime bytecode and give each contract its own bytecode listing even when contracts share a name. The debugger likewise uses artifacts to distinguish same-named contracts.

For symbolic regression tests, Forge now replays the gas prices used during fuzzing. The symbolic engine also races nonlinear queries against an integer encoding, and the test suite adds checks for arithmetic counterexamples.