Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

The `eggVault` variable value should be immutable

Summary

The `eggVault` variable value should be immutable

Vulnerability Details

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

Impact

Immutable variables will cost less gas than common state variables.

Tools Used

Manual Review

Recommendations

Add the immutable attribute to EggHuntGame.eggVault

- EggVault public eggVault;
+ EggVault public immutable eggVault;
Updates

Lead Judging Commences

m3dython Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Gas optimization

Strategy to save gas and minimize transaction costs

Support

FAQs

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