Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

`VotingBooth::s_creator` variable can be marked as immutable

Gas

Description: The VotingBooth::s_creator variable can be marked as immutable as it is not updated after initialization in constructor. Hence this will reduce the gas cost of reading the variable.

Impact: Gas costs to read the variable will be reduced by changing the variable s_creator into an immutable variable.

Recommended Mitigation:

- address private s_creator;
+ address private immutable i_creator;
Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.