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

Make unsafe-allow state-variable-immutable automatically allow assignments #121

Open
frangio opened this issue Jul 5, 2023 · 0 comments

Comments

@frangio
Copy link
Contributor

frangio commented Jul 5, 2023

For uint x immutable = 42 we currently need to unsafe-allow both state-variable-immutable and state-variable-assignment. This is error prone because state-variable-assignment will let through assignments to storage variables as well, which are the main thing to avoid. We should make the immutable override also allow assignments to immutable variables without the second override.

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

No branches or pull requests

1 participant