From fa843c335308d3aefa12b45e82fedcb4ea5da523 Mon Sep 17 00:00:00 2001 From: matias-gonz Date: Fri, 28 Jun 2024 13:00:50 +0200 Subject: [PATCH] Add MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT --- .../crates/zk_inception/src/commands/prover/args/init.rs | 4 ++-- zk_toolbox/crates/zk_inception/src/messages.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zk_toolbox/crates/zk_inception/src/commands/prover/args/init.rs b/zk_toolbox/crates/zk_inception/src/commands/prover/args/init.rs index ac7f873f0ade..8493aeffc34c 100644 --- a/zk_toolbox/crates/zk_inception/src/commands/prover/args/init.rs +++ b/zk_toolbox/crates/zk_inception/src/commands/prover/args/init.rs @@ -15,7 +15,7 @@ use crate::{ MSG_DOWNLOAD_SETUP_KEY_PROMPT, MSG_GETTING_PROOF_STORE_CONFIG, MSG_GETTING_PUBLIC_STORE_CONFIG, MSG_PROOF_STORE_CONFIG_PROMPT, MSG_PROOF_STORE_DIR_PROMPT, MSG_PROOF_STORE_GCS_BUCKET_BASE_URL_PROMPT, MSG_PROOF_STORE_GCS_CREDENTIALS_FILE_PROMPT, - MSG_SETUP_KEY_PATH_PROMPT, + MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT, MSG_SETUP_KEY_PATH_PROMPT, }, }; @@ -210,7 +210,7 @@ impl ProverInitArgs { logger::info(MSG_GETTING_PUBLIC_STORE_CONFIG); let shall_save_to_public_bucket = self .shall_save_to_public_bucket - .unwrap_or_else(|| PromptConfirm::new("Do you want to save to public bucket?").ask()); + .unwrap_or_else(|| PromptConfirm::new(MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT).ask()); if !shall_save_to_public_bucket { return Ok(None); diff --git a/zk_toolbox/crates/zk_inception/src/messages.rs b/zk_toolbox/crates/zk_inception/src/messages.rs index d116f2ab46dc..a6cb1bb00fcd 100644 --- a/zk_toolbox/crates/zk_inception/src/messages.rs +++ b/zk_toolbox/crates/zk_inception/src/messages.rs @@ -239,6 +239,7 @@ pub(super) const MSG_GETTING_GCP_PROJECTS_SPINNER: &str = "Getting GCP projects. pub(super) const MSG_GETTING_PROOF_STORE_CONFIG: &str = "Getting proof store configuration..."; pub(super) const MSG_GETTING_PUBLIC_STORE_CONFIG: &str = "Getting public store configuration..."; pub(super) const MSG_CREATING_GCS_BUCKET_SPINNER: &str = "Creating GCS bucket..."; +pub(super) const MSG_SAVE_TO_PUBLIC_BUCKET_PROMPT: &str = "Do you want to save to public bucket?"; pub(super) fn msg_bucket_created(bucket_name: &str) -> String { format!("Bucket created successfully with url: gs://{bucket_name}")