-
Notifications
You must be signed in to change notification settings - Fork 1.9k
WIP: add vm.stopRecordAndReturnAccesses() cheatcode #10370
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good! However, I realized that this might not cover all use cases: calling stopRecordAndReturnAccesses
resets the accesses and it returns them for one address; if I want to stop and return for multiple addresses, this is not possible as accesses
calls after will always return empty arrays;
I think we need a stopRecord
that stops recording without clearing, and then clear on the next record
call instead.
@grandizzy @mattsse thoughts?
@grandizzy sorry for noob question, but how do I run the integration tests in |
they are defined here https://github.com/foundry-rs/foundry/blob/master/crates/forge/tests/it/cheats.rs |
Yeah, that makes sense. So |
I had thought the same, but didnt implement it because I thought i'd just stick to what was proposed in the issue. Will implement that! thank you! |
sorry closed it by accident |
Motivation
solves #10240
PR Checklist