If both Huff and Solidity files, there is no check if a horse exists before reading the mapping in isHappyHorse
. As a result, all non-existing horses are considered not happy instead of reverting with an error.
Confusion with returned data.
Unexpected logic for the protocol.
Add a check in both contracts to ensure that a horse exists before returning its happiness status. 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.