Concern Regarding Missing address(0)
Check in Escrow.sol
Constructor
Upon examining the constructor()
function of Escrow.sol
, I noticed that there isn't an address(0)
check in place for the arbiter address parameter. The absence of this check may pose potential issues during the dispute resolution process.
The initiateDispute()
function relies on the arbiter address being valid and not equal to the zero address (address(0)
). Without this check, there is a risk of restricting the seller's ability to execute initiateDispute()
in cases where the buyer refuses to confirm receipt after the seller completes the audit.
This will restrict the seller's ability to execute initiateDispute()
in cases where the buyer refuses to confirm receipt after the seller completes the audit.
Manual review
adding a condition in the constructor()
to ensure that the arbiter address is not the zero address before proceeding with the contract initialization. So that the seller can initiate a dispute.
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.