Repository navigation
·
2 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Foundry 1.10.1 fixes regressions from 1.10.0, including the linux/arm64 Docker image, and adds typed and machine-readable forge script workflows. Read Action required before upgrading, because some cheatcode results and gas numbers change.
What you get:
- Working arm64 Docker image. The 1.10.0
linux/arm64image shipped placeholderforge,castandchiselbinaries. This release ships real ones (#18727). - Scriptable
forge script.--args-jsonpasses typed arguments,--no-compilerefuses to run stale sources, and--jsonreports failures as coded envelopes such asscript.revert,rpc.errorandcompiler.stale. vm.getStorageSlotreturns a variable's base slot, byte offset and size from the storage layout, including packed, mapping, dynamic array and ERC-7201 namespaced variables.- About 70 fixes across cheatcodes, symbolic execution, Anvil forks, Cast, config and coverage.
Action required
vm.bound: it now reaches every value in range, so a given seed produces different values and later cheatcode RNG output in the same test shifts. Seeded fuzz runs and persisted failures may not replay as before (#18710).- Gas snapshots: a halting call under
vm.expectRevertgives back its unused gas again, as on 1.9.0. This reverses the 1.10.0 change, so regenerate gas snapshots that you updated for 1.10.0 (#18674). - CREATE2 deployer access: contracts created through the CREATE2 deployer inherit cheatcode access from the caller. Allow-listing the factory with
vm.allowCheatcodes(0x4e59b44847b379578588920cA78FbF26c0B4956C)no longer authorizes them (#18638). - Dependency configs: a dependency's
foundry.tomlis loaded withoutFOUNDRY_CONFIG,FOUNDRY_ROOT,FOUNDRY_SRC,DAPP_SRCor solc env overrides, which can change auto-detected remappings (#18686). expectRevertonnew: with dynamic linking, a test that expects a constructor to revert now runs the rest of its body instead of passing early, so such tests can start failing (#18717).- Building from source: the minimum Rust version is now 1.100 (#18721).
Features
- Scripts:
forge script --args-jsonpasses typed script arguments and rejects JSONnull.--no-compileruns existing artifacts and refuses stale sources. With--json, a failed run ends stdout with a failure envelope codedscript.revert,rpc.error,rpc.transport,compiler.errororcompiler.stale, results includebroadcastable_transactions, and--skip-simulationkeeps stdout clean (#18701, #18706, #18698, #18762, #18696, #18707, #18690, #18689) by @stevencartavia, @mablr. - Cheatcodes:
vm.getStorageSlot(target, variableName)returns a variable's base slot, offset and size, and both storage-slot cheatcodes prefer an exact name over a case-insensitive match (#18382) by @SibghatUllah1997. - Anvil:
trace_filterfilters traces by block hash (#17360) by @figtracer. - Forge: solc 0.8.39 is supported, and Forge warns when build metadata contains absolute paths (#18619, #18715) by @mablr.
Bug fixes
Cheatcodes and execution
- Cheatcodes:
expectEmitcounts add up across emitters, theexpectCallvalue stipend saturates instead of overflowing,expectRevertmatchesdeployCodecreates, and contracts deployed through the CREATE2 deployer inherit their caller's cheatcode access (#18711, #18708, #18717, #18638) by @mablr. - Execution: created accounts are scoped to their fork and tracked through the transaction lifecycle (#18627, #18631) by @stevencartavia, @mablr.
Scripts, config and Forge
- Scripts: the script contract deployed under the default sender is funded with
initial_balance(#18757) by @mablr. - Config and remappings:
chainis accepted as an alias forchain_id, dependencies that import from their own root are no longer scoped, and the nonexistentextends_strategykey is no longer suggested (#18675, #18614, #18111) by @mablr, @aelmanaa. - Coverage and lints: checks that jump around failures are ignored,
--ir-minimumis ignored with a note under Solar, and symlinked inputs are linted (#18630, #18637, #18755) by @mablr, @DaniPopes. - Verify: creation-code matches of a different length are rejected (#18709) by @mablr.
Anvil and Cast
- Anvil forks: fork transactions replay with the source block header, pre-fork raw headers and blocks are served, future raw blocks report not found, and Scroll forks accept headers without blob fields and skip EIP-4788 when replaying (#18724, #18730, #18740, #18625, #18624) by @mablr, @mortezashojaei, @stevencartavia.
- Cast:
cast call --curlforwards state overrides, the keychain root signer is checked against--from, andcast runrejects a receipt for a different transaction (#18756, #18754, #18733) by @mablr, @stevencartavia.
Security
- JSON traces: raw calldata and return data of cheatcodes that carry keys, RPC URLs or env values are reduced to the selector in
--jsontraces (#18639) by @mablr.
Symbolic execution
- Solver and normalizer: more DeFi arithmetic proves instead of timing out, including fees and payouts, share round trips, accrued indexes, collateral ratios, interpolation and streaming schedules, rounded-up and half-up quotients, nested constant divisions and signed guards. Pranked senders fork correctly over known accounts and precompiles,
vm.isPersistentno longer aliases a free address, and constant slots below 2^128 skip the folded mapping search (#18609, #18610, #18612, #18613, #18615, #18617, #18621, #18623, #18626, #18628, #18634, #18640, #18641, #18642, #18643, #18644, #18645, #18646, #18647, #18648, #18649, #18650, #18651, #18652, #18653, #18654, #18655, #18656, #18679, #18681, #18682, #18683, #18684, #18685, #18734, #18735, #18736, #18739, #18512) by @stevencartavia, @mablr, @Thomas-Smets.
Docker, CI and refactors
- Docker: sccache 0.20.1 fixes the arm64 image binaries, and a failed Cargo build now fails the image build (#18727, #18743, #18747) by @stevencartavia, @mablr.
- CI and refactors (#18702, #18692, #18728, #18726, #18748, #18749, #18611) by @stevencartavia, @mablr, @DaniPopes.
Other behavior changes
forge script --json: stdout is JSON Lines. On failure, the last line is a failure envelope after the existing output (#18696).- Anvil: on a fork,
debug_getRawHeaderanddebug_getRawBlockfor future blocks return error -32001 instead of -32602 (#18740). - Cast:
--tempo.configurable-account --fromwith a mismatched root signer now errors (#18754). - Config:
FOUNDRY_CHAINis ignored whenFOUNDRY_CHAIN_IDis set (#18675). - Lints: symlinked files are now linted, so
--deny warningsruns can newly fail (#18755).
Dependencies
- evm2 35aa328, Solar 0.3.1, foundry-core e0be709, and Tempo e10ed14 (#18673, #18721, #18761, #18687, #18732) by @mattsse, @mablr
- url 2.5.9 for RUSTSEC-2026-0592, zstd security patches, and MPP 0.19 with patched SQLite, removing the zstd and SQLite advisory ignores (#18663, #18633, #18635) by @mattsse, @mablr
- Weekly dependency updates (#18670, #18669, #18515)