Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Oct 30, 2024

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

Co-authored-by: DaniPopes <[email protected]>
@DaniPopes
Copy link
Member

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

@klkvr
Copy link
Member Author

klkvr commented Oct 30, 2024

It shouldn't, we set record_steps to true for those:

record_steps: self >= Self::JumpSimple,

@klkvr klkvr merged commit 213d817 into master Oct 30, 2024
21 checks passed
@klkvr klkvr deleted the klkvr/optimize-steps-cheat branch October 30, 2024 23:07
@klkvr klkvr self-assigned this Nov 4, 2024
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
@grandizzy grandizzy added T-bug Type: bug C-forge Command: forge labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge T-bug Type: bug
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants