diff --git a/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol b/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol index debcb30..de72bea 100644 --- a/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol +++ b/contracts/src/RealitioForeignArbitrationProxyWithAppeals.sol @@ -78,6 +78,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy, mapping(uint256 => DisputeDetails) public disputeIDToDisputeDetails; // Maps external dispute ids to local arbitration ID and requester who was able to complete the arbitration request. mapping(uint256 => bool) public arbitrationIDToDisputeExists; // Whether a dispute has already been created for the given arbitration ID or not. mapping(uint256 => address) public arbitrationIDToRequester; // Maps arbitration ID to the requester who was able to complete the arbitration request. + mapping(uint256 => uint256) public arbitrationCreatedBlock; // Block of dispute creation. arbitrationCreatedBlock[disputeID] /* Modifiers */ @@ -182,6 +183,7 @@ contract RealitioForeignArbitrationProxyWithAppeals is IForeignArbitrationProxy, arbitrationIDToDisputeExists[arbitrationID] = true; arbitrationIDToRequester[arbitrationID] = _requester; + arbitrationCreatedBlock[disputeID] = block.number; // At this point, arbitration.deposit is guaranteed to be greater than or equal to the arbitration cost. uint256 remainder = arbitration.deposit - arbitrationCost;