From e35354663c9c0e7788a4578c005b30b92d0b5ba3 Mon Sep 17 00:00:00 2001 From: Matthew Slipper Date: Fri, 20 Dec 2024 11:36:09 -0600 Subject: [PATCH] fix: Remove dead code in main.star --- main.star | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/main.star b/main.star index d24b9d12..0314aced 100644 --- a/main.star +++ b/main.star @@ -98,58 +98,6 @@ def run(plan, args): ) return - # Deploy L2s - plan.print("Deploying a local L2") - if type(optimism_args) == "dict": - l2_services_suffix = "" # no suffix if one l2 - l2_launcher.launch_l2( - plan, - l2_services_suffix, - optimism_args, - l1_config_env_vars, - l1_priv_key, - l1_rpc_url, - global_log_level, - global_node_selectors, - global_tolerations, - persistent, - ) - elif type(optimism_args) == "list": - seen_names = {} - seen_network_ids = {} - for l2_num, l2_args in enumerate(optimism_args): - name = l2_args["network_params"]["name"] - network_id = l2_args["network_params"]["network_id"] - if name in seen_names: - fail( - "Duplicate name: {0} provided, make sure you use unique names.".format( - name - ) - ) - if network_id in seen_network_ids: - fail( - "Duplicate network_id: {0} provided, make sure you use unique network_ids.".format( - network_id - ) - ) - - seen_names[name] = True - seen_network_ids[network_id] = True - l2_services_suffix = "-{0}".format(name) - l2_launcher.launch_l2( - plan, - l2_services_suffix, - l2_args, - l1_config_env_vars, - l1_priv_key, - l1_rpc_url, - global_log_level, - global_node_selectors, - global_tolerations, - persistent, - ) - else: - fail("invalid type provided for param: `optimism-package`") def get_l1_config(all_l1_participants, l1_network_params, l1_network_id):