Eggstravaganza

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

The `EggHuntGame.eggNFT` variable value should be immutable

Summary

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

Vulnerability Details

Impact

Immutable variables will cost less gas than common state variables.

Tools Used

Manual Review

Recommendations

Add the immutable attribute to EggHuntGame.eggNFT variable.

- EggstravaganzaNFT public eggNFT;
+ EggstravaganzaNFT public immutable eggNFT;
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.