list-accounts: Apply suggestions from code review

This commit is contained in:
Jack Grigg 2024-09-10 19:52:38 +01:00 committed by GitHub
parent 0bb328435f
commit 8e74d4e8a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ use zcash_client_sqlite::WalletDb;
use crate::data::{get_db_paths, get_wallet_network};
// Options accepted for the `import-ufvk` command
// Options accepted for the `list-accounts` command
#[derive(Debug, Options)]
pub(crate) struct Command {}
@ -19,9 +19,9 @@ impl Command {
let account = db_data.get_account(*account_id)?.unwrap();
println!("Account {}", i);
println!(" Uivk: {}", account.uivk().encode(&params));
println!(" UIVK: {}", account.uivk().encode(&params));
println!(
" Ufvk: {}",
" UFVK: {}",
account
.ufvk()
.map_or("None".to_owned(), |k| k.encode(&params))