foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.17k stars 1.7k forks source link

feat: `legacy_assertions` config option #8263

Closed klkvr closed 3 months ago

klkvr commented 3 months ago

Motivation

Per Discord discussion, adds "legacy" behavior for assertions. If legacy_assertions config option is set, assertions will not revert and will instead produce logs and accumulate till the end of test execution.

Solution

cc @DaniPopes I've enabled logic for tracking GLOBAL_FAILURES_SLOT on cheatcodes address

Closes: https://github.com/foundry-rs/foundry/issues/8049

klkvr commented 3 months ago

@DaniPopes this should be good to merge