Foundry v1.8.1 is a patch release on top of v1.8.0 that fixes regressions in dynamic test linking, Polygon PoS forks, npm remapping auto-detection, linting, and fork endpoint discovery. It also removes the project trust warnings introduced in v1.8.0.
Forge and configuration
- Fixed dynamically linked contract creation so one-shot pranks are consumed correctly and the pranked
tx.originis preserved (#16431) by @figtracer. - Fixed auto-detected remappings for scoped npm dependencies that mix nested and hoisted packages, preventing a nested package from shadowing its hoisted siblings (#16434) by @figtracer.
- Fixed
forge lintand post-build lint import resolution when--rootpoints to a project outside the process working directory (#16423) by @figtracer. - Fixed inline lint directives and ignored paths for findings reported in inherited or recursively analyzed source files (#16437) by @stevencartavia.
Anvil and forking
- Fixed post-Cancun calls on Polygon PoS and Amoy forks whose Bor headers intentionally omit Ethereum blob gas fields (#16432) by @figtracer.
- Made the initial
anvil_nodeInfocapability probe optional, allowing non-Anvil fork endpoints with vendor-specific rejection codes to fall back to standard RPC discovery. Once an endpoint is identified as Anvil, later probe failures remain strict (#16425) by @mattsse.
CLI
- Removed the warnings shown before loading project dotenv files or running project-configured local Solc and Vyper executables. Their underlying behavior is unchanged (#16426) by @figtracer.