Commit 5f168648 authored by clabby's avatar clabby

Lint deployment script

parent 8d19667d
...@@ -6,9 +6,16 @@ import { assertContractVariable, deploy } from '../src/deploy-utils' ...@@ -6,9 +6,16 @@ import { assertContractVariable, deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
if (hre.deployConfig.l2BlockTime === 0) { if (hre.deployConfig.l2BlockTime === 0) {
throw new Error('L2OutputOracle deployment: l2BlockTime must be greater than 0') throw new Error(
} else if (hre.deployConfig.l2OutputOracleSubmissionInterval <= hre.deployConfig.l2BlockTime) { 'L2OutputOracle deployment: l2BlockTime must be greater than 0'
throw new Error('L2OutputOracle deployment: submissionInterval must be greater than the l2BlockTime') )
} else if (
hre.deployConfig.l2OutputOracleSubmissionInterval <=
hre.deployConfig.l2BlockTime
) {
throw new Error(
'L2OutputOracle deployment: submissionInterval must be greater than the l2BlockTime'
)
} }
await deploy({ await deploy({
......
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