The SpookySwap
contract lacks validation check for weather or not the filled in data is empty nor if the Treat already exists. If the owner mistakenly would enter a Treat double or with no name, Cost or no metaURi, than this cannot be changed anymore.
no checks in the addTreat
function
If the metaUri would be empty than this could cause some problems because people would mint an NFT without an image. If Name would be empty then this would not have a great impact just that when people would call the getTreats
function it would give some empty names. If the cost would be empty then this also does not cause any danger because they cannot mint the NFT thanks to following line of code in trickOrTreat
ChatGpt
implement some checks weather or not there has been filled in empty information, and weather or not the Treat already existed.
The function `addTreat` is called by the owner. The owner is trusted. There will be no duplicates.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.