Skip to content

Commit c5ee106

Browse files
authored
Merge pull request #197 from kleros/fix-multiple-arbitrable-transaction
fix(multiple-arbitrable-transaction): fix incompatible events
2 parents 9b526b6 + 144ffab commit c5ee106

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

contracts/standard/arbitration/MultipleArbitrableTransaction.sol

+3-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ contract MultipleArbitrableTransaction {
6666
* @param _party The address of the party submiting the evidence. Note that 0 is kept for evidences not submitted by any party.
6767
* @param _evidence A link to evidence or if it is short the evidence itself. Can be web link ("http://X"), IPFS ("ipfs:/X") or another storing service (using the URI, see https://en.wikipedia.org/wiki/Uniform_Resource_Identifier ). One usecase of short evidence is to include the hash of the plain English contract.
6868
*/
69-
event Evidence(Arbitrator indexed _arbitrator, uint indexed _disputeID, address _party, string _evidence);
69+
event Evidence(Arbitrator indexed _arbitrator, uint indexed _disputeID, address indexed _party, string _evidence);
7070

7171
/** @dev To be emmited when a dispute is created to link the correct meta-evidence to the disputeID.
7272
* @param _arbitrator The arbitrator of the contract.
@@ -76,12 +76,11 @@ contract MultipleArbitrableTransaction {
7676
event Dispute(Arbitrator indexed _arbitrator, uint indexed _disputeID, uint _metaEvidenceID);
7777

7878
/** @dev To be raised when a ruling is given.
79-
* @param _transactionID The index of the transaction in dispute.
8079
* @param _arbitrator The arbitrator giving the ruling.
8180
* @param _disputeID ID of the dispute in the Arbitrator contract.
8281
* @param _ruling The ruling which was given.
8382
*/
84-
event Ruling(uint indexed _transactionID, Arbitrator indexed _arbitrator, uint indexed _disputeID, uint _ruling);
83+
event Ruling(Arbitrator indexed _arbitrator, uint indexed _disputeID, uint _ruling);
8584

8685
// **************************** //
8786
// * Arbitrable functions * //
@@ -292,7 +291,7 @@ contract MultipleArbitrableTransaction {
292291
require(msg.sender == address(arbitrator), "The caller must be the arbitrator.");
293292
require(transaction.status == Status.DisputeCreated, "The dispute has already been resolved.");
294293

295-
emit Ruling(transactionID, Arbitrator(msg.sender), _disputeID, _ruling);
294+
emit Ruling(Arbitrator(msg.sender), _disputeID, _ruling);
296295

297296
executeRuling(transactionID, _ruling);
298297
}

0 commit comments

Comments
 (0)