Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
[clap-v3-utils] Replace pubkeys_sigs_of with try_pubkeys_sigs_of (#…
Browse files Browse the repository at this point in the history
…34801)

* replace `pubkeys_sigs_of` with `try_pubkeys_sigs_of`

* propagate error from `try_pubkeys_sigs_of` to the caller
  • Loading branch information
samkim-crypto authored Jan 20, 2024
1 parent 3916c31 commit c071cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clap-v3-utils/src/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use {
crate::{
input_parsers::{pubkeys_sigs_of, STDOUT_OUTFILE_TOKEN},
input_parsers::{signer::try_pubkeys_sigs_of, STDOUT_OUTFILE_TOKEN},
offline::{SIGNER_ARG, SIGN_ONLY_ARG},
ArgConstant,
},
Expand Down Expand Up @@ -807,7 +807,7 @@ pub fn signer_from_path_with_config(
}
}
SignerSourceKind::Pubkey(pubkey) => {
let presigner = pubkeys_sigs_of(matches, SIGNER_ARG.name)
let presigner = try_pubkeys_sigs_of(matches, SIGNER_ARG.name)?
.as_ref()
.and_then(|presigners| presigner_from_pubkey_sigs(&pubkey, presigners));
if let Some(presigner) = presigner {
Expand Down

0 comments on commit c071cf5

Please sign in to comment.