Snowman Merkle Airdrop

First Flight #42
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[GAS] variable that is set in constructor and never changed can be set to immutable

[GAS] Variable not changed after constructor calls can be made immutable to save gas fees

Description

  • The s_SnowmanSvgUri is being set in the constructor function and then never changed after that.

  • These variables can be set to immutable to reduce gas fees

string private s_SnowmanSvgUri;

Risk

Likelihood:

  • Always

Impact:

  • Slightly higher gas fees

Recommended Mitigation

- string private s_SnowmanSvgUri;
+ string private immutable s_SnowmanSvgUri;
Updates

Lead Judging Commences

yeahchibyke Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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