diff --git a/src/commands/new/parachain.rs b/src/commands/new/parachain.rs index 420c6557..180fcbe0 100644 --- a/src/commands/new/parachain.rs +++ b/src/commands/new/parachain.rs @@ -7,7 +7,7 @@ use clap::{Args, Parser}; use std::{fs, path::Path}; use strum_macros::{Display, EnumString}; -use cliclack::{clear_screen, confirm, intro, outro, outro_cancel, set_theme}; +use cliclack::{clear_screen, confirm, intro, outro, outro_cancel, set_theme,log}; #[derive(Clone, Parser, Debug, Display, EnumString, PartialEq)] pub enum Template { @@ -63,7 +63,7 @@ impl NewParachainCommand { "Cannot generate parachain until \"{}\" directory is removed.", destination_path.display() ))?; - return Ok(()); + return Ok(()) } fs::remove_dir_all(destination_path)?; } @@ -83,7 +83,8 @@ impl NewParachainCommand { outro_cancel("git signature could not be found. Please configure your git config with your name and email")?; } } - spinner.stop(format!("Generation complete using {}", tag)); + spinner.stop("Generation complete"); + log::info(format!("Version: {}", tag))?; outro(format!("cd into \"{}\" and enjoy hacking! 🚀", &self.name))?; Ok(()) } diff --git a/src/engines/parachain_engine.rs b/src/engines/parachain_engine.rs index 0ff98120..5f697365 100644 --- a/src/engines/parachain_engine.rs +++ b/src/engines/parachain_engine.rs @@ -94,7 +94,7 @@ mod tests { decimals: 18, initial_endowment: "1000000".to_string(), }; - let result: anyhow::Result<()> = instantiate_base_template(temp_dir.path(), config); + let result: anyhow::Result = instantiate_base_template(temp_dir.path(), config); assert!(result.is_ok()); Ok(temp_dir) }