Skip to content

Commit

Permalink
fix(arbitrator): simple example missed requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Oct 8, 2018
1 parent 1fc32b4 commit 2b951c1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ contract TwoPartyArbitrableEscrowPayment is Arbitrable {

function executePayment() public onlySenderOrReceiver {
require(now - createdAt > timeOut, "The timeout time has not passed yet.");
require(!disputed, "The payment is disputed.");
require(!executed, "The payment was already executed.");
executed = true;
receiver.send(value);
}

function executeRuling(uint _disputeID, uint _ruling) internal {
require(disputed, "The payment is not disputed.");
require(_disputeID == disputeID, "Wrong dispute ID.");
require(!executed, "The payment was already executed.");
executed = true;
Expand Down

0 comments on commit 2b951c1

Please sign in to comment.