Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Unchanged variables should be constant or immutable

Summary

Variables that will need not have be changed later can be marked as immutable to improve security as well as save gas costs since immutable and constant variables are included in bytecode and does not occupy storage slots.

Impact

May cause confusion to code readers

Recommendations

Make below changes to codebase to convert variables to immutable.

Immutable Instances:

for ChoosingRam.sol

RamNFT public immutable i_ramNFT;

for RamNFT.sol

address public immutable i_organiser;

for Dussehra.sol

uint256 public immutable i_entranceFee;
address public immutable i_organiser;
RamNFT public immutable i_ramNFT;
ChoosingRam public immutable i_choosingRamContract;
Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Info/Gas/Invalid according to docs

Support

FAQs

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