The safeTransferFrom
function has the same functionality as transferFrom
, but adds needed additional checks.
In the contract Streets.sol
the function stake
is used to stake the user's token, however the transfer is initiated with transferFrom
instead of safeTransferFrom
. The specific benefit of using safeTransferFrom
in this case is that it adds one additional check - tokenId
token must exist and be owned by from
.
The user may call transferFrom with a non-existent token which would result
Manual review
Update the stake function so that it uses safeTransferFrom:
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.