-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(cheatcodes): vm.getStorageSlots #11537
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
Conversation
This approach leverages the I'm okay with deprecating |
I see, deprecating |
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!
The base branch was changed.
Would be nice to include storage layout flag in |
* feat(common): identify bytes and string slots using storageLayout * fmt * clippy * aggregate and decode bytes and strings * cleanup * nits * clippy * fmt * nit * cleanup * identify the slots using the length of data in base slot value * nit * fix * fix mapping identification * feat(cheatcodes): vm.getStorageSlots * fix tests * nit * fmt * nit * nit * fmt * Update crates/common/src/slot_identifier.rs * Update crates/common/src/slot_identifier.rs * add mapping in test * fmt * error mapping and dyn arrays * nit * nit --------- Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
…heatcodes (#744) - `getStorageSlots`: foundry-rs/foundry#11537 - `signWithNonceUnsafe`: foundry-rs/foundry#11267 - `get/setEvmExecution`: foundry-rs/foundry#12014
Motivation
Closes #3869
Solution
vm.getStorageSlots(address target, string variableName) returns (uint256[] slots)
PR Checklist