Skip to content

Commit

Permalink
fix(multi-party-agreements): record ruling
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Oct 16, 2018
1 parent a0259a0 commit 4158802
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ contract MultiPartyAgreements is Arbitrable {
Agreement storage agreement = agreements[_agreementID];
require(agreement.creator != address(0), "The specified agreement does not exist.");
require(!agreement.executed, "The specified agreement has already been executed.");
agreement.ruling = _ruling;
agreement.executed = true;
}

Expand All @@ -106,10 +107,7 @@ contract MultiPartyAgreements is Arbitrable {
* @param _ruling The ruling.
*/
function executeRuling(uint _disputeID, uint _ruling) internal {
bytes32 _agreementID = arbitratorAndDisputeIDToAgreementID[msg.sender][_disputeID];
Agreement storage agreement = agreements[_agreementID];
agreement.ruling = _ruling;
executeAgreementRuling(_agreementID, _ruling);
executeAgreementRuling(arbitratorAndDisputeIDToAgreementID[msg.sender][_disputeID], _ruling);
}

/* External Views */
Expand Down

0 comments on commit 4158802

Please sign in to comment.