s_state was never set to State.Created
in the constructor.
The #confirmReceipt() has the inState
modifier which ensures that the function can ONLY be called when the state (i.e s_state) == State.created.
here is the details of the modifier
As you can see, if the state(s_state) is not in the expected state the modifier ensures a revert.
Now the issue is that the contract fails to set the state(s_state) to State.Created
in the constructor.
This makes #confirmReceipt() uncallable by the buyer.
Buyer will never be able to confirm receipt.
Lofi Radio and Manual Review
set the state(s_state) to State.Created
in 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.