From a87e5beda48c4165f93d3c529a4c827cb810e34f Mon Sep 17 00:00:00 2001 From: Antonio Calvin Date: Tue, 6 Aug 2024 16:27:43 +0200 Subject: [PATCH] get l1-network config param from flag --- .../zk_inception/src/commands/ecosystem/args/create.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zk_toolbox/crates/zk_inception/src/commands/ecosystem/args/create.rs b/zk_toolbox/crates/zk_inception/src/commands/ecosystem/args/create.rs index 05fe43dc5e96..24cf4e3b4a10 100644 --- a/zk_toolbox/crates/zk_inception/src/commands/ecosystem/args/create.rs +++ b/zk_toolbox/crates/zk_inception/src/commands/ecosystem/args/create.rs @@ -65,8 +65,9 @@ impl EcosystemCreateArgs { } }); - let l1_network = PromptSelect::new(MSG_L1_NETWORK_PROMPT, L1Network::iter()).ask(); - + let l1_network = self.l1_network.unwrap_or_else(|| { + PromptSelect::new(MSG_L1_NETWORK_PROMPT, L1Network::iter()).ask() + }); // Make the only chain as a default one self.chain.set_as_default = Some(true);