Skip to content

Commit

Permalink
Merge pull request #79 from zcash/fix_hex_parsing
Browse files Browse the repository at this point in the history
Fix clap error in parsing for hex-encoded CLI options.
  • Loading branch information
str4d authored Feb 5, 2025
2 parents 5e9f612 + 4f77a0c commit 67fb313
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/pczt/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>,
sapling_proof_generation_key: Option<std::vec::Vec<u8>>,

/// age identity file to decrypt the mnemonic phrase with for deriving the Sapling proof generation key
#[arg(short, long)]
Expand Down
2 changes: 1 addition & 1 deletion src/commands/wallet/import_ufvk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>,
seed_fingerprint: Option<std::vec::Vec<u8>>,

/// ZIP 32 account index corresponding to the UFVK
#[arg(long)]
Expand Down
2 changes: 1 addition & 1 deletion src/commands/wallet/init_fvk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>,
seed_fingerprint: Option<std::vec::Vec<u8>>,

/// ZIP 32 account index corresponding to the UFVK
#[arg(long)]
Expand Down

0 comments on commit 67fb313

Please sign in to comment.