[clap-utils] Remove `--blockhash` arg as a strict requirement when passing `--nonce` (#30864)

* require nonce authority argument on nonce clap argument

* remove nonce authority requirement on nonce clap argument
This commit is contained in:
samkim-crypto 2023-03-24 09:48:16 +09:00 committed by GitHub
parent 52e63e2ffa
commit 7d87e8227f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,5 @@
use {
crate::{input_validators::*, offline::BLOCKHASH_ARG, ArgConstant},
crate::{input_validators::*, ArgConstant},
clap::{Arg, Command},
};
@ -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)
}