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

s_owner should be an immutable variable

Summary

s_owner is a variable that is set in the constructor and cannot change. Therefore it should be immutable which will save some gas.

Vulnerability Details

s_owner should be designated immutable:

address private s_owner;

Impact

You will have cleaner code and use less gas upon deployment.

Tools Used

Manual review

Recommendations

Change the definition of s_owner to:

address private immutable s_owner;
Updates

Lead Judging Commences

inallhonesty Lead Judge
about 2 years ago
inallhonesty Lead Judge about 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.