Commit c434bc19 authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: fix L2OO deployment assertion

Fixes the bug in the `L2OutputOracle` config such that it
only enforces that the submission interval is not 0. This
previously also existed in the constructor of the smart contract
and was fixed there in the following commit:
https://github.com/ethereum-optimism/optimism/commit/51623242abd2c4b226dd2c3eb4cb95e99355f94a
parent 3a4c7dd4
......@@ -9,12 +9,10 @@ const deployFn: DeployFunction = async (hre) => {
throw new Error(
'L2OutputOracle deployment: l2BlockTime must be greater than 0'
)
} else if (
hre.deployConfig.l2OutputOracleSubmissionInterval <=
hre.deployConfig.l2BlockTime
) {
}
if (hre.deployConfig.l2OutputOracleSubmissionInterval === 0) {
throw new Error(
'L2OutputOracle deployment: submissionInterval must be greater than the l2BlockTime'
'L2OutputOracle deployment: submissionInterval cannot be 0'
)
}
......
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