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
7.86k stars 1.56k forks source link

fix: correctly adjust depth when calling cheatcodes with `--isolate` #8273

Closed klkvr closed 4 days ago

klkvr commented 4 days ago

Motivation

After #8181 cheatcodes are called separately in InspectorStack::call and currently depth for its invocation is not adjusted while in isolation, resulting in failing test-isolate CI job https://github.com/foundry-rs/foundry/actions/runs/9688379922

Solution

Adjust depth separately for Cheatcodes call