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

`RamNFT::getNextTokenId` function is redundant

Summary

The RamNFT::getNextTokenId function is never used and is redundant since the
tokenCounter is a public variable and has its own getter function

Vulnerability Details

The RamNFT::getNextTokenId function even if it is declared is never used

@> function getNextTokenId() public view returns (uint256) {
return tokenCounter;
}

Impact

Unused and Redundant Functions can be removed safely to save on deploy costs

Tools Used

  1. Manual Review

  2. Foundry

Recommendations

The RamNFT::getNextTokenId function can be safely removed

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.