diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f7de6b2e..90d00c6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,7 +34,7 @@ At the moment this project **does not** adhere to - Attestation pallet ([#1003](https://github.com/entropyxyz/entropy-core/pull/1003)) - Update test CLI for new registration and signing flows ([#1008](https://github.com/entropyxyz/entropy-core/pull/1008)) - Add remove program function to entropy-client ([#1023](https://github.com/entropyxyz/entropy-core/pull/1023)) -- Programs version ([#1045](https://github.com/entropyxyz/entropy-core/pull/1045)) +- Add a programs version ([#1045](https://github.com/entropyxyz/entropy-core/pull/1045)) ### Changed - Fix TSS `AccountId` keys in chainspec ([#993](https://github.com/entropyxyz/entropy-core/pull/993)) diff --git a/crates/test-cli/src/lib.rs b/crates/test-cli/src/lib.rs index 1ac300e6d..3f39d98d8 100644 --- a/crates/test-cli/src/lib.rs +++ b/crates/test-cli/src/lib.rs @@ -126,7 +126,7 @@ enum CliCommand { /// The path to a file containing the program aux interface (defaults to empty) aux_data_interface_file: Option, /// The version number of the program you compiled with - version_number: u8, + version_number: Option, /// The mnemonic to use for the call #[arg(short, long)] mnemonic_option: Option, @@ -176,6 +176,7 @@ pub async fn run_command( program_file_option: Option, config_interface_file_option: Option, aux_data_interface_file_option: Option, + program_version_number_option: Option, ) -> anyhow::Result { let cli = Cli::parse(); @@ -296,6 +297,11 @@ pub async fn run_command( )?, }; + let version_number = match program_version_number_option { + Some(version_number) => version_number, + None => version_number.expect("No Version number passed"), + }; + let hash = store_program( &api, &rpc, diff --git a/crates/test-cli/src/main.rs b/crates/test-cli/src/main.rs index 49a9bd95f..e554a995e 100644 --- a/crates/test-cli/src/main.rs +++ b/crates/test-cli/src/main.rs @@ -22,7 +22,7 @@ use entropy_test_cli::run_command; #[tokio::main] async fn main() -> anyhow::Result<()> { let now = Instant::now(); - match run_command(None, None, None).await { + match run_command(None, None, None, None).await { Ok(output) => { println!("Success: {}", output.green()); println!("{}", format!("That took {:?}", now.elapsed()).yellow());