-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(script): simulate mining on the onchain simulation with --slow
#2481
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.
This will disable the cheatcodes as they are not used anyway as this is actually meant for simulation/use, correct?
Would this cause side effects when using cheatcodes in scripts?
I don't think so. Given that it's the onchain simulation, i'd say that's the recommended way actually. |
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.
lgtm!
smol merge conflict @joshieDo then good 2 merge |
…foundry-rs#2481) * increment block.number on onchain simulation with --slow * add doc to executor.build_env
Motivation
ref #2474
And should also close #1902 to my understanding. ( @naps62 )
Solution
Increment
block.number
in between calls during the onchain simulation.