0xKitsune / solstat

A Solidity static analyzer to identify contract vulnerabilities and gas efficiencies.
426 stars 36 forks source link

Non-value type variable should not be marked as immutable candidate #75

Closed dijkstra-dev closed 1 year ago

dijkstra-dev commented 1 year ago

Currently, a non-value type variable is marked as an immutable candidate, but immutability is not available for such variables and they must be defined as constants instead.

https://docs.soliditylang.org/en/v0.8.13/contracts.html?highlight=immutable#constant-and-immutable-state-variables