RockPaperScissors.sol
, the line winningToken.transferFrom(msg.sender, address(this), 1);
is used to move a token from the player to the contract. However, it doesn’t check if the transfer was successful. This is risky because if the transfer fails and the code doesn’t notice, the rest of the contract might keep running as if everything is fine, which can lead to bugs or unexpected behavior.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.