Consensys / vscode-solidity-auditor

Solidity language support and visual security auditor for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor
GNU General Public License v3.0
569 stars 60 forks source link

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

Closed RomiRand closed 2 years ago

RomiRand commented 2 years ago

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.