As described in the documentation (ref. README.md file) the mintHorse() function allows anyone to mint their own horse NFT. But in it the caller of the HorseStore.sol::mintHorse()
is a smart contract the mint fails. The HorseStore.sol::mintHorse()
isn't able to receive the NFT because is missing the onERC721Received() function
.
If the caller of the mintHorse() function is a smart contract (in our test we use directly the horseStore contract, the mint fails.
Manual review
Add the onERC721Received()
function in the HorseStore.sol contract.
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.