diff --git a/main.star b/main.star index 9f5f180e1..e02620752 100644 --- a/main.star +++ b/main.star @@ -74,6 +74,13 @@ def run(plan, args={}): src="/opt/zkevm/genesis.json", ) + # Deploy the agglayer. + if deployment_stages.get("deploy_agglayer", False): + plan.print("Deploying the agglayer") + import_module(agglayer_package).run(plan, args) + else: + plan.print("Skipping the deployment of the agglayer") + # Deploy cdk central/trusted environment. if deployment_stages.get("deploy_cdk_central_environment", False): # Deploy cdk-erigon sequencer node. @@ -115,12 +122,6 @@ def run(plan, args={}): else: plan.print("Skipping the deployment of cdk/bridge infrastructure") - # Deploy the agglayer. - if deployment_stages.get("deploy_agglayer", False): - plan.print("Deploying the agglayer") - import_module(agglayer_package).run(plan, args) - else: - plan.print("Skipping the deployment of the agglayer") # Deploy contracts on L2. if deployment_stages.get("deploy_l2_contracts", False):