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

owner address should be immutable

Summary

As there is no contract functionality to change ownership we can assume the owner of the contract will not change.We can save on gas by making the s_owner variable immutable.

Impact

immutable variables do not occupy a storage slot when compiled, they are just saved inside the contract byte code thus it will save gas in deployment.

Recommendations

the s_owner variable should be marked as immutable.

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.