Skip to content

Commit 1fb1ded

Browse files
Apply suggestions from code review
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
1 parent 3952264 commit 1fb1ded

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/soroban-cli/src/commands/ledger/latest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct Cmd {
2727
pub network: network::Args,
2828

2929
/// Format of the output
30-
#[arg(long, default_value = "text")]
30+
#[arg(long, default_value_t)]
3131
pub output: OutputFormat,
3232
}
3333

@@ -41,7 +41,7 @@ impl Cmd {
4141
OutputFormat::Text => {
4242
println!("Sequence: {}", ledger.sequence);
4343
println!("Protocol Version: {}", ledger.protocol_version);
44-
println!("ID: {}", ledger.id);
44+
println!("Hash: {}", ledger.id);
4545
}
4646
OutputFormat::Json => println!("{}", serde_json::to_string(&ledger)?),
4747
OutputFormat::JsonFormatted => println!("{}", serde_json::to_string_pretty(&ledger)?),

0 commit comments

Comments
 (0)