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

Updating s_owner to immutable

Summary

The s_owner is set only once in the constructor, it will be cool if we change it to an immutable

Vulnerability Details

Impact

changing the s_owner to be an immutable instead of a private is useful as it could save some gas

Tools Used

manual analysis

Recommendations

change the s_owner to an immutable since it is set once in the constructor

address immutable i_owner;

and set it in the constructor as

constructor(){
i_owner = msg.sender;
}

immutable variables are useful in gas saving your contract will be more gas efficient

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.