Skip to content

Commit

Permalink
[clap-utils] Remove --blockhash arg as a strict requirement when pa…
Browse files Browse the repository at this point in the history
…ssing `--nonce` (#30864)

* require nonce authority argument on nonce clap argument

* remove nonce authority requirement on nonce clap argument
  • Loading branch information
samkim-crypto authored Mar 24, 2023
1 parent 52e63e2 commit 7d87e82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clap-v3-utils/src/nonce.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use {
crate::{input_validators::*, offline::BLOCKHASH_ARG, ArgConstant},
crate::{input_validators::*, ArgConstant},
clap::{Arg, Command},
};

Expand All @@ -23,7 +23,6 @@ fn nonce_arg<'a>() -> Arg<'a> {
.long(NONCE_ARG.long)
.takes_value(true)
.value_name("PUBKEY")
.requires(BLOCKHASH_ARG.name)
.validator(|s| is_valid_pubkey(s))
.help(NONCE_ARG.help)
}
Expand Down

0 comments on commit 7d87e82

Please sign in to comment.