Skip to content

Commit

Permalink
Fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 3, 2024
1 parent f6195ba commit c6c89e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions script/DeploySystem.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,30 @@ contract DeploySystem is Deploy {
setupSuperchain();
console.log("set up superchain!");

setupSystemConfigGlobal();
console.log("set up system config global!");

setupOpChain2();
console.log("set up op chain!");

setupChainDeploy();
console.log("set chain deploy!");
}

function setupSystemConfigGlobal() public {
console.log("Setting up SystemConfigGlobal");

deployERC1967Proxy("SystemConfigGlobalProxy");
deploySystemConfigGlobal();
initializeSystemConfigGlobal();
}

function setupOpChain2() public {
console.log("Deploying OP Chain");

// Ensure that the requisite contracts are deployed
mustGetAddress("SuperchainConfigProxy");
mustGetAddress("SystemConfigGlobalProxy");
mustGetAddress("SystemOwnerSafe");
mustGetAddress("AddressManager");
mustGetAddress("ProxyAdmin");
Expand All @@ -67,7 +79,6 @@ contract DeploySystem is Deploy {

deployERC1967Proxy("OptimismPortalProxy");
deployERC1967Proxy("SystemConfigProxy");
deployERC1967Proxy("SystemConfigGlobalProxy");
deployL1StandardBridgeProxy();
deployL1CrossDomainMessengerProxy();
deployERC1967Proxy("OptimismMintableERC20FactoryProxy");
Expand All @@ -88,7 +99,6 @@ contract DeploySystem is Deploy {
deployL1CrossDomainMessenger();
deployOptimismMintableERC20Factory();
deploySystemConfigOwnable();
deploySystemConfigGlobal();
deployL1StandardBridge();
deployL1ERC721Bridge();
deployPortal();
Expand All @@ -99,7 +109,6 @@ contract DeploySystem is Deploy {
console.log("Initializing implementations");
initializePortal();
initializeSystemConfigOwnable();
initializeSystemConfigGlobal();
initializeL1StandardBridge();
initializeL1ERC721Bridge();
initializeOptimismMintableERC20Factory();
Expand Down
2 changes: 1 addition & 1 deletion src/SystemConfigGlobal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract SystemConfigGlobal is OwnableUpgradeable, ISemver {

constructor() {
initialize({
_owner: address(0)
_owner: address(0xdEaD)
});
}

Expand Down

0 comments on commit c6c89e7

Please sign in to comment.