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

In the contract NFTFactory.sol , while deleting the nft created we are not decreasing the counter by 1.

Summary

In the contract NFTFactory.sol , while deleting the nft created we are not decreasing the counter by 1. So While we are deleting nft the counter remains the same which can cause misinformation

Vulnerability Details

function burnEstate(uint256 _id) external onlyInheritanceManager {
_burn(_id);
}

Impact

Misinformation about the current number of nft .

Tools Used

VScode

Recommendations

function burnEstate(uint256 _id) external onlyInheritanceManager {
_burn(_id);
counter-=1
}
Updates

Lead Judging Commences

0xtimefliez 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.