Skip to content
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

Load correct account in allowChangesToStorage #704

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

anvacaru
Copy link
Contributor

There was a bug in the allowChangesToStorage cheat code. loadAccount was called on the entire ARGS (account + storage slot) instead of just the account, represented by the first 32 bytes with #range(ARGS, 0, 32).

We didn't catch this in the current tests because we only tested it with concrete values.
I added a new test for this scenario.

@anvacaru anvacaru added automerge bug Something isn't working labels Jul 17, 2024
@anvacaru anvacaru requested a review from palinatolmach July 17, 2024 09:02
@anvacaru anvacaru self-assigned this Jul 17, 2024
@palinatolmach palinatolmach merged commit 3cc4186 into master Jul 17, 2024
13 checks passed
@palinatolmach palinatolmach deleted the whitelist_storage_fix branch July 17, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants