Unnecessary validation checks being performed in the constructor of the Escrow contract could we avoided saving some gas.
The validation for buyer and tokenContract need not be performed in the constructor as they have been indirectly validation for the following conditions in the EscrowFactory contract ( buyer is the msg.sender which cannot be 0 address and the safeTransferFrom method has been called on tokenContract which makes it impossible to be 0 address)
Unwanted expenditure of 237 gas
Forge gas reporter
Remove the checks from the constructor
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.