Skip to content

Commit

Permalink
Small fixes to test-cli (#1084)
Browse files Browse the repository at this point in the history
Small fixes to test-cli
  • Loading branch information
ameba23 authored Oct 1, 2024
1 parent 367fccb commit f8cd3a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/test-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ enum CliCommand {
/// interface.
programs: Vec<String>,
/// Option of version numbers to go with the programs, will default to 0 if None
#[arg(short, long)]
program_version_numbers: Option<Vec<u8>>,
/// A name or mnemonic from which to derive a program modification keypair.
/// This is used to send the register extrinsic so it must be funded
Expand Down Expand Up @@ -311,7 +312,7 @@ pub async fn run_command(
program_version_number,
)
.await?;
Ok(format!("Program stored {hash}"))
Ok(format!("Program stored: {}", hex::encode(hash)))
},
CliCommand::RemoveProgram { mnemonic_option, hash } => {
let mnemonic = if let Some(mnemonic_option) = mnemonic_option {
Expand Down Expand Up @@ -409,7 +410,7 @@ pub async fn run_command(

if !programs.is_empty() {
println!(
"{:<11} {:<48} {:<11} {:<14} {} {}",
"{:<64} {:<48} {:<11} {:<14} {} {}",
"Hash".blue(),
"Stored by:".green(),
"Times used:".purple(),
Expand All @@ -420,7 +421,7 @@ pub async fn run_command(
for (hash, program_info) in programs {
println!(
"{} {} {:>11} {:>14} {:<13} {}",
hash,
hex::encode(hash),
program_info.deployer,
program_info.ref_counter,
program_info.bytecode.len(),
Expand Down

0 comments on commit f8cd3a2

Please sign in to comment.