Skip to content

Commit

Permalink
Addresses pretty print
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Sep 25, 2023
1 parent afcea4c commit e7635c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/command/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ pub async fn voting_output_command(account: &Account) -> Result<(), Error> {

async fn print_address(account: &Account, address: &AccountAddress) -> Result<(), Error> {
let mut log = format!(
"Address {}:\n {:<10}{}\n {:<10}{:?}",
"Address: {}\n{:<9}{}\n{:<9}{:?}",
address.key_index(),
"Bech32:",
address.address(),
Expand Down Expand Up @@ -979,7 +979,7 @@ async fn print_address(account: &Account, address: &AccountAddress) -> Result<()
}

log = format!(
"{log}\n Outputs: {:#?}\n Base coin amount: {}\n Native Tokens: {:?}\n NFTs: {:?}\n Aliases: {:?}\n Foundries: {:?}\n",
"{log}\nOutputs: {:#?}\nBase coin amount: {}\nNative Tokens: {:#?}\nNFTs: {:#?}\nAliases: {:#?}\nFoundries: {:#?}\n",
output_ids,
amount,
native_tokens.finish_vec()?,
Expand Down

0 comments on commit e7635c5

Please sign in to comment.