There is no check if a horse exists before feeding it.
The same case exists in HorseStore.huff
.
A user feeding a non-existing horse won't trigger a revert and can lead to confusion.
Unexpected logic for the protocol.
Add a check in both contracts to ensure that a horse exists before feeding it. A simple check is to call ownerOf
with the tokenId
; this function will revert if the token is not minted.
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.