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

State s_owner is missing an Immutable modifier to reduce the gas costs

Summary

State variables that are not updated following deployment should be declared immutable to save gas.

Vulnerability Details

State variables can be marked immutable which causes them to be read-only, but only
assignable in the constructor.

Impact

Gas cost

Tools Used

Slither

Recommendations

Add the immutable attribute to state variables that never change or are set only in the constructor (s_owner) to reduce the gas costs.

Updates

Lead Judging Commences

inallhonesty Lead Judge
almost 2 years ago
inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

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