Open code423n4 opened 2 years ago
pauliax
Assigned operations to constant variables are re-evalueted every time.
bytes32 public constant ADMIN_ROLE = keccak256('ADMIN'); bytes32 public constant SENTINEL_ROLE = keccak256('SENTINEL');
See https://github.com/ethereum/solidity/issues/9232
Change from 'constant' to 'immutable'.
change to immutable will result in compile error
Marking this as a valid finding.
Tested this in remix, doesn't seem to cause compiler errors.
Handle
pauliax
Vulnerability details
Impact
Assigned operations to constant variables are re-evalueted every time.
See https://github.com/ethereum/solidity/issues/9232
Change from 'constant' to 'immutable'.