Commit 76beb937 authored by Maurelian's avatar Maurelian

contracts-bedrock: Use revert if required addresses not available

parent 84da145c
...@@ -251,19 +251,11 @@ contract Deploy is Deployer { ...@@ -251,19 +251,11 @@ contract Deploy is Deployer {
function setupOpChain() public { function setupOpChain() public {
console.log("Deploying OP Chain"); console.log("Deploying OP Chain");
if (getAddress("SuperchainConfigProxy") == address(0)) { // Ensure that the requisite contracts are deployed
deployERC1967Proxy("SuperchainConfigProxy"); mustGetAddress("SuperchainConfigProxy");
} mustGetAddress("SystemOwnerSafe");
if (getAddress("SystemOwnerSafe") == address(0)) { mustGetAddress("AddressManager");
deploySafe(); mustGetAddress("ProxyAdmin");
}
if (getAddress("AddressManager") == address(0)) {
deployAddressManager();
}
if (getAddress("ProxyAdmin") == address(0)) {
deployProxyAdmin();
transferProxyAdminOwnership();
}
deployProxies(); deployProxies();
deployImplementations(); deployImplementations();
......
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