File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,58 +98,6 @@ def run(plan, args):
9898 )
9999
100100 return
101- # Deploy L2s
102- plan .print ("Deploying a local L2" )
103- if type (optimism_args ) == "dict" :
104- l2_services_suffix = "" # no suffix if one l2
105- l2_launcher .launch_l2 (
106- plan ,
107- l2_services_suffix ,
108- optimism_args ,
109- l1_config_env_vars ,
110- l1_priv_key ,
111- l1_rpc_url ,
112- global_log_level ,
113- global_node_selectors ,
114- global_tolerations ,
115- persistent ,
116- )
117- elif type (optimism_args ) == "list" :
118- seen_names = {}
119- seen_network_ids = {}
120- for l2_num , l2_args in enumerate (optimism_args ):
121- name = l2_args ["network_params" ]["name" ]
122- network_id = l2_args ["network_params" ]["network_id" ]
123- if name in seen_names :
124- fail (
125- "Duplicate name: {0} provided, make sure you use unique names." .format (
126- name
127- )
128- )
129- if network_id in seen_network_ids :
130- fail (
131- "Duplicate network_id: {0} provided, make sure you use unique network_ids." .format (
132- network_id
133- )
134- )
135-
136- seen_names [name ] = True
137- seen_network_ids [network_id ] = True
138- l2_services_suffix = "-{0}" .format (name )
139- l2_launcher .launch_l2 (
140- plan ,
141- l2_services_suffix ,
142- l2_args ,
143- l1_config_env_vars ,
144- l1_priv_key ,
145- l1_rpc_url ,
146- global_log_level ,
147- global_node_selectors ,
148- global_tolerations ,
149- persistent ,
150- )
151- else :
152- fail ("invalid type provided for param: `optimism-package`" )
153101
154102
155103def get_l1_config (all_l1_participants , l1_network_params , l1_network_id ):
You can’t perform that action at this time.
0 commit comments