-
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: allow isolate
config to be defined inline
#6908
Comments
I think the transient storage context should be split by default for each top-level call in the Foundry test runner. Also, I would like transient storage to be cleared when explicitly switching the runtime context using prank etc. |
Hello, was this implemented? |
Through this comment, I learned that running tests with the |
vm.clearTransient
@andreas-blockswap does running in |
I think this is still useful, otherwise you are forced to use the whole test suite in isolated to get it to pass in CI? or have some hacks where transient tests get filtered with |
What about using inline config to specify specific tests that run in isolate mode, this way a single |
Nice, yeah, I am in favour of this approach too, inline is not supported atm but can be easily added |
Yes, the inline config would address it. But I still think |
vm.clearTransient
isolate
config to be defined inline
ref #5371 |
Component
Forge
Describe the feature you would like
In solc version 0.8.24, transactions compose differently than message calls. While adding support for solc 0.8.24 (issue #6903) I think that it will be useful with a cheat code to clear the transient storage, so that we can model transactions with message calls.
For example a cheat code
function clearTransientStorage(address)
to zero the transient storage. This cheat code can be used to model a transactiona.f(x)
withand transaction composition of
a.f(x)
anda.g(y)
can be modeled withAdditional context
No response
The text was updated successfully, but these errors were encountered: