In the MAIN
macro, no revert was placed before labels. Consequently, for any call to a non-existing function, it will execute GET_TOTAL_SUPPLY
instead of reverting.
Any user or contract can misinterpret the return data and mistakenly believe that the function they called exists. This behavior is not compliant with Solidity contracts.
To address this issue, add a revert before labels in the MAIN
macro.
This modification ensures that if an unknown function is called, the contract reverts, preventing the unintended execution of GET_TOTAL_SUPPLY
and maintaining compliance with Solidity contracts.
Any call data sent to the contract that doesn't contain a function selector will randomly mint a horse.
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.