First Flight #12: Kitty Connect

First Flight #12: Kitty Connect
Beginner FriendlyFoundryNFTGameFi
100 EXP
View results
Submission Details
Severity: low
Invalid

No Validation in getCatAge() function

Summary

getCatAge() could return incorrect age.

Vulnerability Details

If non minted Token id is passed then default value of s_catInfo[tokenId].dob will be 0 and then getCatAge() returns age as (block.timestamp-0)

Impact

User will get confused

Tools Used

VS code

Recommendations

Use require statements to have proper validation like If Token Id exists before returning value

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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