Commit 7be28f9d authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: cleanup fixes

parent 0d0df070
......@@ -238,8 +238,6 @@ contract Messenger_Initializer is L2OutputOracle_Initializer {
_paused: false
});
vm.label(address(op), "OptimismPortal");
vm.prank(op.GUARDIAN());
op.unpause();
// Deploy the address manager
vm.prank(multisig);
......
......@@ -8,6 +8,10 @@ import {
} from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()
const isLiveDeployer =
deployer.toLowerCase() === hre.deployConfig.controller.toLowerCase()
const L2OutputOracleProxy = await getContractFromArtifact(
hre,
'L2OutputOracleProxy'
......@@ -21,6 +25,11 @@ const deployFn: DeployFunction = async (hre) => {
console.log(
`WARNING: setting OptimismPortal.GUARDIAN to ${finalSystemOwner} and it has no code`
)
if (!isLiveDeployer) {
throw new Error(
'Do not deploy to production networks without the GUARDIAN being a contract'
)
}
}
// Deploy the OptimismPortal implementation as paused to
......
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