Puppy Raffle

AI First Flight #1
Beginner FriendlyFoundrySolidityNFT
EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Unchanged state variables should be declared as `constant` or `immutable`

[G-1] Unchanged state variables should be declared as constant or immutable

Description: Reading from storage is expensive. State variables that are never modified after deployment should be declared as immutable or constant to save gas.

Instances:

  • PuppyRaffle::raffleDuration should be immutable.

  • PuppyRaffle::commonImageUri should be constant.

  • PuppyRaffle::rareImageUri should be constant.

  • PuppyRaffle::legendaryImageUri should be constant.

Recommendation: Change there declaration as it was suggested before.

Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge about 2 hours ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!