Unsafe casting from uint256 to uint160 in computeEscrowAddress
in the contract Escrowfactory.sol
the function does unsafe downcasting from uint256
to uint160
in here:
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L119
unsafe downcasting from uint256
to uint160
in this part of the code
unsafe downcast will create an unexpected truncate values.
We recommend the project handle downcasting and use safe casting library.
https://docs.openzeppelin.com/contracts/3.x/api/utils#SafeCast
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.