GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

State variable could be declared immutable

Summary

State variables that are should be declared immutable to save gas. Add the immutable attribute to state variables that are only changed in the constructor

Tools Used

Manual Review, Aderyn

Recommendations

  • make the following change in src/GivingThanks.sol Line: 13

- address public owner;
+ address public immutable i_owner;
Updates

Lead Judging Commences

n0kto Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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