I need to complete this task to let the function work only if the modifiers (that should be correct) work as shown in the image. Basically compPurch has always to be true and also realBuyer OR timeBought have to be true.
modifier compPurch() {
require(state == State.Locked, "it's not locked");
_;
time = block.timestamp;
}
modifier realBuyer() {
require(msg.sender == buyer, "you're not the buyer");
_;
}
modifier timeBought() {
require(block.timestamp >= time + 5, "wait 5 mins fro purchase");
_;
}
}