In Escrowfactory there is an unneccessary cast from bytes32
to uint256
.
The function computeEscrowAddress
takes the salt
parameter as uint256. Therefore the salt, passed to newEscrow
is casted to an uint256 from a bytes32 before passing it as an argument.
However there is no need for it to be an uint256 instead of bytes32, as it is only used inside a abi.encodePacked which is hashed.
Increased gas cost because of unneccessary type cast.
Manual Review
Change the computeEscrowAddress
to take the salt as an bytes32 and remove the type cast.
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.