From 7ca1a488b30e266dbe1d0ce23b7da6dbcfa2116c Mon Sep 17 00:00:00 2001 From: Matheus Faria de Alencar Date: Thu, 15 Oct 2020 17:24:34 -0300 Subject: [PATCH] fix: incorrect returned disputeID value --- contracts/examples/CentralizedArbitratorWithAppeal.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/examples/CentralizedArbitratorWithAppeal.sol b/contracts/examples/CentralizedArbitratorWithAppeal.sol index 2ae709d..2f212ea 100644 --- a/contracts/examples/CentralizedArbitratorWithAppeal.sol +++ b/contracts/examples/CentralizedArbitratorWithAppeal.sol @@ -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) {