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

Make State Variables Private to Save Gas

Summary

Making state variables private and accessing them through public view getters will save gas

Recommendations

Conduct the following changes for all state variables in RamNFT, ChoosingRam, and Dussehra contracts:

- uint256 public entranceFee;
+ uint256 private entranceFee;
+ function getEntranceFee() public view returns (uint256) {
+ return entranceFee;
+ }
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.