Open rzmahmood opened 1 year ago
This is currently not supported, more discussion in https://github.com/foundry-rs/foundry/issues/3869
@brockelmore has a PR that should fix this in https://github.com/foundry-rs/forge-std/pull/259, but I'm not sure of the status of it
Edit: Hm actually per https://github.com/foundry-rs/foundry/issues/3869#issuecomment-1362963430 maybe this should work, let me try to reproduce
Ok I was able to reproduce. Also tried using PR #259 but got [FAIL. Reason: stdStorage find(StdStorage): No storage use detected for target.]
as the error. In both cases I did verify that the data was in slot 0 (i.e. solc isn't optimizing away storage into immutables or anything)
Example contract:
Script:
Output: