From 4f77a0cf1100ef46138829371cce49a3581c0764 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Tue, 4 Feb 2025 20:26:32 -0700 Subject: [PATCH] Fix clap error in parsing for hex-encoded CLI options. Solution was found here: https://github.com/clap-rs/clap/issues/4481#issuecomment-1336404947 --- src/commands/pczt/prove.rs | 2 +- src/commands/wallet/import_ufvk.rs | 2 +- src/commands/wallet/init_fvk.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/pczt/prove.rs b/src/commands/pczt/prove.rs index b2415b9..3a93b33 100644 --- a/src/commands/pczt/prove.rs +++ b/src/commands/pczt/prove.rs @@ -20,7 +20,7 @@ pub(crate) struct Command { /// Hex encoding of the Sapling proof generation key #[arg(long)] #[arg(value_parser = parse_hex)] - sapling_proof_generation_key: Option>, + sapling_proof_generation_key: Option>, /// age identity file to decrypt the mnemonic phrase with for deriving the Sapling proof generation key #[arg(short, long)] diff --git a/src/commands/wallet/import_ufvk.rs b/src/commands/wallet/import_ufvk.rs index 4ed19a7..b8b8f97 100644 --- a/src/commands/wallet/import_ufvk.rs +++ b/src/commands/wallet/import_ufvk.rs @@ -33,7 +33,7 @@ pub(crate) struct Command { /// Hex encoding of the ZIP 32 fingerprint for the seed from which the UFVK was derived #[arg(long)] #[arg(value_parser = parse_hex)] - seed_fingerprint: Option>, + seed_fingerprint: Option>, /// ZIP 32 account index corresponding to the UFVK #[arg(long)] diff --git a/src/commands/wallet/init_fvk.rs b/src/commands/wallet/init_fvk.rs index 16efc9d..8e064a6 100644 --- a/src/commands/wallet/init_fvk.rs +++ b/src/commands/wallet/init_fvk.rs @@ -35,7 +35,7 @@ pub(crate) struct Command { /// Hex encoding of the ZIP 32 fingerprint for the seed from which the UFVK was derived #[arg(long)] #[arg(value_parser = parse_hex)] - seed_fingerprint: Option>, + seed_fingerprint: Option>, /// ZIP 32 account index corresponding to the UFVK #[arg(long)]