Eggstravaganza

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

`EggHuntGame::eggNFT` and `EggHuntGame::eggVault` should be immutable

Description: The state variables EggHuntGame::eggNFT and EggHuntGame::eggVault are only set in the constructor of EggHuntGame and should therefore be immutable to save gas.

Recommended Mitigation:

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

Lead Judging Commences

m3dython Lead Judge 4 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.