initiateDispute()
check if i_arbiter == address(0)
but when create Escrow does not check.
So when sender forget add i_arbiter
when create Escrow, it causes buyers to only perform confirmations and not be able to add disputes. I think this is unfair
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L103
As we can see, it does not check i_arbiter == address(0)
when create the Escrow
https://github.com/Cyfrin/2023-07-escrow/blob/main/src/Escrow.sol#L49
When sender forget add i_arbiter
when create Escrow, it causes buyers to only perform confirmations and not be able to add disputes, this is unfair
vs code
I think it's a design issue. A state should be added when creating Escrow
to confirm whether the msg.sender
really does not need an arbitrator
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.