Commit 8d19667d authored by clabby's avatar clabby

Add check to deployment script

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