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.34k stars 1.77k forks source link

fix: remove steps after steps tracing cheatcodes are done #9234

Closed klkvr closed 3 weeks ago

klkvr commented 3 weeks ago

Motivation

ref https://t.me/foundry_support/57540

right now all recorded steps stay in memory until the end of tests execution which is not neccesarry

Solution

DaniPopes commented 3 weeks ago

Does this conflict with other features like printing traces and debugger?

klkvr commented 3 weeks ago

It shouldn't, we set record_steps to true for those: https://github.com/foundry-rs/foundry/blob/5a4cda00520177914e14dde3ab2128b702c5de8a/crates/evm/traces/src/lib.rs#L337