diff --git a/templates/basic-template/cli/Cargo.toml b/templates/basic-template/cli/Cargo.toml index 2a7e0f5..a251fab 100644 --- a/templates/basic-template/cli/Cargo.toml +++ b/templates/basic-template/cli/Cargo.toml @@ -14,4 +14,4 @@ anyhow ="1.0.82" dotenv = "0.15.0" generate-types = { path = "../generate-types" } project-root = "0.2.2" -entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "master" } \ No newline at end of file +entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "programs-version" } \ No newline at end of file diff --git a/templates/basic-template/cli/src/main.rs b/templates/basic-template/cli/src/main.rs index 65f1663..ed542c2 100644 --- a/templates/basic-template/cli/src/main.rs +++ b/templates/basic-template/cli/src/main.rs @@ -1,5 +1,5 @@ use colored::Colorize; -use entropy_test_cli::run_command; +use entropy_test_cli::{run_command, PROGRAM_VERSION_NUMBER}; use dotenv::dotenv; use generate_types::generate_types; use project_root::get_project_root; @@ -11,7 +11,7 @@ async fn main() -> anyhow::Result<()> { generate_types(); let config_interface = format!("{}/{{project-name}}_serialized_config_type.txt", get_project_root()?.to_string_lossy()); let aux_data_interface = format!("{}/{{project-name}}_serialized_aux_data_type.txt", get_project_root()?.to_string_lossy()); - match run_command(Some(program.into()), Some(config_interface.into()), Some(aux_data_interface.into())).await { + match run_command(Some(program.into()), Some(config_interface.into()), Some(aux_data_interface.into()), Some(PROGRAM_VERSION_NUMBER)).await { Ok(output) => { println!("Success: {}", output.green()); Ok(())