Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

There is no check for the null address

Summary

There is no check for the null address

Vulnerability Details

In the setGameContract when releasing(mint) the NFT does not check the null address. NFT can be lost irretrievably.

Impact

NFT can be lost irretrievably.

Tools Used

Recommendations

Use null address check

require(to != address(0), "Invalid recipient"

Updates

Lead Judging Commences

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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