Skip to content

Commit

Permalink
fix: incorrect returned disputeID value
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Oct 15, 2020
1 parent 67bc33f commit 7ca1a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/examples/CentralizedArbitratorWithAppeal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contract CentralizedArbitratorWithAppeal is IArbitrator {

emit DisputeCreation(disputeID, IArbitrable(msg.sender));

disputeID = disputes.length;
disputeID = disputes.length - 1;
}

function disputeStatus(uint256 _disputeID) public override view returns (DisputeStatus status) {
Expand Down

0 comments on commit 7ca1a48

Please sign in to comment.