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

Warn when the storage layout base is near the end of storage (2^64 slots or less) #15912

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

matheusaaguiar
Copy link
Collaborator

@matheusaaguiar matheusaaguiar commented Mar 4, 2025

@matheusaaguiar matheusaaguiar self-assigned this Mar 4, 2025
@matheusaaguiar matheusaaguiar changed the base branch from develop to storageLocationStorageLayout March 4, 2025 03:32
@matheusaaguiar matheusaaguiar force-pushed the storageLocationStorageLayout branch from a13d53e to f27af62 Compare March 4, 2025 03:53
@matheusaaguiar matheusaaguiar force-pushed the warnStorageLayoutNearTheEnd branch 3 times, most recently from 9d77c0f to acb5733 Compare March 4, 2025 05:01
@matheusaaguiar matheusaaguiar force-pushed the storageLocationStorageLayout branch 4 times, most recently from 0c0c671 to 1423298 Compare March 6, 2025 13:30
@cameel cameel added the has dependencies The PR depends on other PRs that must be merged first label Mar 6, 2025
Base automatically changed from storageLocationStorageLayout to develop March 8, 2025 04:58
@matheusaaguiar matheusaaguiar force-pushed the warnStorageLayoutNearTheEnd branch from acb5733 to fa803f5 Compare March 10, 2025 18:51
@cameel cameel force-pushed the warnStorageLayoutNearTheEnd branch from 1cd145c to 85431e6 Compare March 10, 2025 23:42
cameel
cameel previously approved these changes Mar 10, 2025
Copy link
Member

@cameel cameel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main problem is that the warning still only gets issued for contracts with a layout specifier. Other than that just a few minor things.

But I just pushed fixups that address all of this so I'm approving the PR. If you accept the fixups, you can simply squash them into the right commits and merge.

@cameel cameel removed the has dependencies The PR depends on other PRs that must be merged first label Mar 10, 2025
@cameel cameel force-pushed the warnStorageLayoutNearTheEnd branch from 85431e6 to b0104f3 Compare March 11, 2025 00:47
@matheusaaguiar matheusaaguiar force-pushed the warnStorageLayoutNearTheEnd branch from b0104f3 to 5297950 Compare March 11, 2025 03:10
@cameel cameel merged commit 4bf8a9f into develop Mar 11, 2025
72 of 73 checks passed
@cameel cameel deleted the warnStorageLayoutNearTheEnd branch March 11, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants