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

s_owner variable should be immutable

Summary

Since the s_owner variable is only set once in the constructor during the contract creation, it should be made immutable

Vulnerability Details

Impact

Immutable variables are not stored in the storage slots but in the contract's bytecode which reduces gas on opcode SLOAD and SSTORE

Tools Used

Manual Review

Recommendations

    1. address immutable private 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.