diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index de65c7f..44818bf 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -84,7 +84,7 @@ module.exports = { apiKey: { chiado: process.env.GNOSIS_API_KEY, xdai: process.env.GNOSIS_API_KEY, - mainnent: process.env.ETHERSCAN_API_KEY, + mainnet: process.env.ETHERSCAN_API_KEY, sepolia: process.env.ETHERSCAN_API_KEY, }, }, diff --git a/contracts/src/RealitioForeignArbitrationProxy.sol b/contracts/src/RealitioForeignArbitrationProxy.sol index a6051b9..1717822 100644 --- a/contracts/src/RealitioForeignArbitrationProxy.sol +++ b/contracts/src/RealitioForeignArbitrationProxy.sol @@ -69,6 +69,7 @@ contract RealitioForeignArbitrationProxy is IForeignArbitrationProxy { /// @dev Whether a dispute has already been created for the given question ID or not. questionIDToDisputeExists[questionID] mapping(bytes32 => bool) public questionIDToDisputeExists; + mapping(uint256 => uint256) public arbitrationCreatedBlock; // Block of dispute creation. arbitrationCreatedBlock[disputeID] modifier onlyArbitrator() { require(msg.sender == address(arbitrator), "Only arbitrator allowed"); @@ -159,6 +160,7 @@ contract RealitioForeignArbitrationProxy is IForeignArbitrationProxy { disputeDetails.requester = _requester; questionIDToDisputeExists[_questionID] = true; + 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;