According to the documentation, the feedhorse function should allow anyone to feed a horse NFT. However, the timestamp coreesponding to the horseId parameter is updated even if the horseId NFT does not exist (not minted yet).
Non existing horse NFT can be fed, which seems to break the idea of an NFT.
Since the feedHorse transacation does not revert in this case, the user will not be informed that the horse NFT he fed does not exist.
Newly minted horse will potentially be already fed and be in the happy state.
Feeding non existing horse does not revert
Newly minted horse NFT is potentially happy if it was fed before it exists
In both HorseStore.sol and HorseStore.huff, feedHorse should revert if there is no owner registered for the horseId parameter.
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.