-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into upg-1.2.1
- Loading branch information
Showing
5 changed files
with
34 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2021-2022, Offchain Labs, Inc. | ||
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import "../precompiles/ArbSys.sol"; | ||
|
||
contract PendingBlkTimeAndNrAdvanceCheck { | ||
uint256 immutable deployedAt; | ||
uint256 immutable deployedAtBlock; | ||
|
||
constructor() { | ||
deployedAt = block.timestamp; | ||
deployedAtBlock = ArbSys(address(100)).arbBlockNumber(); | ||
} | ||
|
||
function isAdvancing() external { | ||
require(block.timestamp > deployedAt, "Time didn't advance"); | ||
require(ArbSys(address(100)).arbBlockNumber() > deployedAtBlock, "Block didn't advance"); | ||
} | ||
} |
Oops, something went wrong.