From 9694cb9354d1c56e098dc8dbdc827660cb7e6c52 Mon Sep 17 00:00:00 2001 From: josojo Date: Fri, 25 Aug 2023 08:18:57 +0800 Subject: [PATCH] solhint-disable-next-line not-rely-on-time --- contracts/ForkingManager.sol | 2 ++ contracts/interfaces/IForkingManager.sol | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/ForkingManager.sol b/contracts/ForkingManager.sol index 694f4130..b20c18f9 100644 --- a/contracts/ForkingManager.sol +++ b/contracts/ForkingManager.sol @@ -91,6 +91,7 @@ contract ForkingManager is IForkingManager, ForkableStructure { forkProposals[counter] = ForkProposal({ disputeData: disputeData, proposedImplementations: newImplementations, + // solhint-disable-next-line not-rely-on-time executionTime: block.timestamp + preparationTime }); proposalCounter = counter + 1; @@ -104,6 +105,7 @@ contract ForkingManager is IForkingManager, ForkableStructure { function executeFork(uint256 counter) external onlyBeforeForking { require( forkProposals[counter].executionTime != 0 && + // solhint-disable-next-line not-rely-on-time forkProposals[counter].executionTime <= block.timestamp, "ForkingManager: fork not ready" ); diff --git a/contracts/interfaces/IForkingManager.sol b/contracts/interfaces/IForkingManager.sol index 3656f92c..93fd77a8 100644 --- a/contracts/interfaces/IForkingManager.sol +++ b/contracts/interfaces/IForkingManager.sol @@ -35,7 +35,7 @@ interface IForkingManager is IForkableStructure { AddressPair forkonomicToken; AddressPair globalExitRoot; } - + // Struct containing the data for the paid fork struct ForkProposal { DisputeData disputeData;