Functions createGameWithToken()
and joinGameWithToken()
returns a value but it is ignored. Consider checking the return value to ensure that the transfer was successful.
This could lead to a situation where the transfer fails but the function does not handle it, potentially leading to unexpected behavior or loss of funds.
Aderyn.
Add a check to ensure that the transfer was successful. This could be done by checking the return value of the transferFrom()
function and reverting the transaction if it fails.
ERC20 implementation typically reverts on transfer failures
ERC20 implementation typically reverts on transfer failures
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.