Skip to content

Commit

Permalink
solhint-disable-next-line not-rely-on-time
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Nov 2, 2023
1 parent 3303392 commit 9694cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contracts/ForkingManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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"
);
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IForkingManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface IForkingManager is IForkableStructure {
AddressPair forkonomicToken;
AddressPair globalExitRoot;
}

// Struct containing the data for the paid fork
struct ForkProposal {
DisputeData disputeData;
Expand Down

0 comments on commit 9694cb9

Please sign in to comment.