Skip to content

Commit

Permalink
Improves CLI messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco authored and Gianmarco Fraccaroli committed Nov 17, 2022
1 parent e84452c commit dbdc004
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions phase2-cli/src/ascii_logo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ pub const ASCII_LOGO: &str = r"
";

#[rustfmt::skip]
pub const ASCII_CONTRIBUTION_DONE: &str = "
_________________
| |_____ __
| Hello Privacy! | |__| |_________
|_________________| |::| | /
/\\**/\\ | \\._____|::|__| <
( o_o )_ | \\::/ \\.________\\
(u--u \\_) |
(||___ )==\\
,dP\"/b/=( /P\"/b\\
|8 || 8\\=== || 8
pub const ASCII_CONTRIBUTION_DONE: &str = r#"
___________________________
| |____ __
| Hello Interchain Privacy! | |__| |________
|___________________________| |::| | /
/\**/\ | \.____|::|__| <
( o_o )_ | \::/ \______\
(u--u \_) |
(||___ )==\
,dP"/b/=( /P"/b\
|8 || 8\=== || 8
`b, ,P `b, ,P
\"\"\"` \"\"\"`
";
"""` """`
"#;
4 changes: 2 additions & 2 deletions phase2-cli/src/bin/namada-ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ async fn contribution_loop(
.expect(&format!("{}", "Couldn't read the contributor info file".red().bold()));
let contrib_info: ContributionInfo = serde_json::from_slice(&content).unwrap();

println!("{}\n{}\n\nI've contributed to @namadanetwork Trusted Setup Ceremony at round #{} with the contribution hash {}. Let's enable interchain privacy. #InterchainPrivacy\n\n{}",
println!("{}\n{}\n\nI've contributed to @namadanetwork #NamadaTrustedSetup at round #{} with the contribution hash {}. Let's enable #interchain privacy.\n\n{}",
"Done! Thank you for your contribution! If your contribution is valid, it will appear on ceremony.namada.net. Check it out!".green().bold(),
"If you’d like to share that you contributed with your frens and the world, you can use:".bright_cyan(),
round_height,
Expand All @@ -532,7 +532,7 @@ async fn contribution_loop(
} else {
loop {
let attestation_url =
io::get_user_input("Please enter a valid url for your attestation:".bright_yellow(), None)
io::get_user_input("Please enter a valid url for your attestation (starting with http or https):".bright_yellow(), None)
.unwrap();
if Url::parse(attestation_url.as_str()).is_ok() {
// Send attestation to coordinator
Expand Down

0 comments on commit dbdc004

Please sign in to comment.