Foundry v1.10.0

Release 10 reads

Version
v1.10.0
Repository
foundry-rs/foundry

Release notes

Foundry 1.10.0 replaces revm with evm2, a new blazing fast execution engine, across Forge, Anvil, Cast and Chisel. Read Action required before upgrading, because gas numbers and some execution details change.

What you get:

• Up to 4.5× faster tests on evm2. A tighter interpreter, and inspectors that step only the opcodes they act on, make forge test 4.5× faster than 1.9.0 on Morpho Blue, 3.5× on Spark PSM and 2.1× on Aave v4.

• Pinned Solar releases. solc = "solar:0.3.0" pins a Solar release, which Forge downloads if it is missing, and forge build -j 4 compiles with four Solar threads.

• Tempo T14 configurable accounts. Create configurable accounts, manage their owners and thresholds, and send transactions their owners sign, from Cast, Forge and Anvil.

• Faster debugger. On the 1.46M-step Aave v4 test, SolDB is ready in 1.40 s instead of 1.96 s, with peak memory around 1 GiB. The opcode pane shows PUSH values again.

• Deeper invariant campaigns. Runs resume from states reached by earlier runs, and failing fuzz and invariant tests report minimized counterexamples.

• About 220 fixes across symbolic execution, coverage, cheatcodes, fuzzing, Anvil and Cast.

Action required

• Gas snapshots (evm2): regenerate them. Fork warmth and fork transient storage no longer leak from setUp, and vm.setArbitraryStorage leaves slots cold. A halting call under vm.expectRevert now consumes all forwarded gas, as on chain, unless the test makes it directly as a non-static call with isolate = true. If later work in the test runs out of gas, forward a fixed amount, as in target.f{gas: 100_000}() (#17541, #18396).

• Remappings: when a dependency's remapping conflicts with another dependency or a root path, it now applies only inside that dependency, which can change which copy a dependency compiles against. A root import of that alias then fails with an error that suggests the remapping to add, or silently resolves to another target, and Forge warns in that case. Adding the old line to your root remappings restores 1.9 resolution for the whole project (#18433, #18573, #18590, #18603).

• Test discovery: only suites under src, test and script run, and forge test warns about project suites it skips. Widen test to keep running them (#18424, #18572).

• Invariants: snapshot fuzzing is on by default, so a run can start from a state an earlier run reached instead of from setUp. Handlers and afterInvariant hooks that assume a fresh state per run can fail (#18018).

Performance

• evm2: inspectors step only the opcodes they act on and per-call and per-step overhead is trimmed, so forge test is 4.5× faster than 1.9.0 on Morpho Blue, 3.5× on Spark PSM and 2.1× on Aave v4 (#17541, #18412, #18476) by @mablr, @stevencartavia, @grandizzy, @joshieDo, @emmajam, @pepyakin, @0xKarl98, @figtracer.

• Debugger: the Aave v4 session is ready in 1.40 s instead of 1.96 s. The recorder appends only new stack words and no longer uses excessive memory on multi-call transactions such as Tempo batches (#18285, #18392, #18394) by @figtracer, @mablr, @stevencartavia.

• Invariant campaigns: predicates run without instrumentation, campaigns drop the tracer, prefixes replay once, and hints and coverage keys are smaller (#18121, #18244, #18166, #18180, #18474, #18243) by @figtracer.

• Forks, Anvil, gas reports and coverage: the opt-in fork_prefetch also prefetches the state of simulated calls, Anvil fork history shares unchanged state, and gas reports and coverage use less memory (#18247, #18435, #18423, #18129, #18473, #18475) by @figtracer, @mablr, @stevencartavia.

• Linking, cheatcodes and lints: library paths are canonicalized only when needed, cheatcodes cache env overrides, and reentrancy-balance no longer re-analyzes callees per call site (#18160, #18125, #18063) by @figtracer, @stevencartavia, @DaniPopes.

Features

Forge

• Solar: solc = "solar:<version>", also accepted by --use and FOUNDRY_SOLC_VERSION, pins an exact Solar release that Forge downloads and checks…

Full release on GitHub ↗

Release viem

viem@2.58.4

Patch Changes • #5625 4357826238423ab3e18e7bc52a7952308ae224f0 Thanks @jxom! - Fixed viem/op-stack withdrawals on chains that move to a shared DisputeGameFactory in OP Stack Upgrade 22...

Release viem

viem@2.58.3

Patch Changes #5614 b4be930334b5a3eadc100abf1ad0d923f477f081 Thanks @mortezashojaei! - Fixed ccipRequest to include the gateway's EIP-3668 error message in HttpRequestError details...

Release Sui

Sui mainnet-v1.84.2

Sui v1.84.2: mainnet hotfix Sui Protocol Version in this release: 142 Validators • Fixes a fork in the address-balance funds withdraw scheduler. This only affects validators, and only...

Release viem

viem@2.58.2

Patch Changes #5601 bc5f35549f5e01fc6ea87571dd257cb7ad57a525 Thanks @jxom! - Stripped a trailing slash from a custom Arweave gateway when getEnsAvatar rewrites https://arweave.net...