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

Non-constant and immutable state variables don't differentiate visually #96

Closed
RomiRand opened this issue Apr 11, 2022 · 0 comments · Fixed by #97
Closed

Non-constant and immutable state variables don't differentiate visually #96

RomiRand opened this issue Apr 11, 2022 · 0 comments · Fixed by #97

Comments

@RomiRand
Copy link
Contributor

Currently you need to scroll up and check if a variable is immutable or not when evaluating storage accesses for gas optimizations which can be a bit annoying. That's especially true for bigger contracts with many state variables. From a gas cost perspective it would make more sense to use the green border color of constant state variables instead of the golden color of non-constant state variables. Optimally there should be a separate border color for immutables so you can immediately differentiate all the storage types from each other.

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 a pull request may close this issue.

1 participant