Commit dde7018e authored by clabby's avatar clabby

Lint

parent 43591702
......@@ -91,7 +91,10 @@ contract L2OutputOracle is Initializable, Semver {
address _challenger
) Semver(1, 0, 0) {
require(_l2BlockTime > 0, "L2OutputOracle: L2 block time must be greater than 0");
require(_submissionInterval > _l2BlockTime, "L2OutputOracle: submission interval must be greater than L2 block time");
require(
_submissionInterval > _l2BlockTime,
"L2OutputOracle: submission interval must be greater than L2 block time"
);
SUBMISSION_INTERVAL = _submissionInterval;
L2_BLOCK_TIME = _l2BlockTime;
......
......@@ -56,7 +56,10 @@ contract L2OutputOracleTest is L2OutputOracle_Initializer {
);
}
function testFuzz_constructor_submissionIntervalLteL2BlockTime_reverts(uint256 _submissionInterval, uint256 _l2BlockTime) external {
function testFuzz_constructor_submissionIntervalLteL2BlockTime_reverts(
uint256 _submissionInterval,
uint256 _l2BlockTime
) external {
// Bound the _l2blockTime to be in the range of [1, type(uint256).max]
_l2BlockTime = bound(_l2BlockTime, 1, type(uint256).max);
// Roll the block number to _l2blockTime (the starting L2 timestamp must be less than or equal to the current time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment