Open code423n4 opened 2 years ago
The _name, _symbol, and _minter state variables in VoterID are set in the constructor and do not change. They can be declared immutable.
_name
_symbol
_minter
VoterID
immutable
VoterID.sol#L65-L66
string _name; string _symbol;
VoterID.sol#L73-L74
// minter has the sole, permanent authority to mint identities, in practice this will be a contract address public _minter;
Suggestion:
string immutable _name; string immutable _symbol;
// minter has the sole, permanent authority to mint identities, in practice this will be a contract address immutable public _minter;
all duplicates
Declare variables immutable
The
_name
,_symbol
, and_minter
state variables inVoterID
are set in the constructor and do not change. They can be declaredimmutable
.VoterID.sol#L65-L66
VoterID.sol#L73-L74
Suggestion: