[clap-v3-utils] Fix deprecation message of `is_valid_pubkey` and `is_valid_signer` to `allow_all()` (#531)

fix deprecation message of `is_valid_pubkey` and `is_valid_signer` to `allow_all()`
This commit is contained in:
samkim-crypto 2024-04-03 07:16:53 +09:00 committed by GitHub
parent 4247a8a546
commit 85c14b4e4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ where
// produce a pubkey()
#[deprecated(
since = "1.18.0",
note = "please use `SignerSourceParserBuilder::default().allow_pubkey().allow_file_path().build()` instead"
note = "please use `SignerSourceParserBuilder::default().allow_all().build()` instead"
)]
#[allow(deprecated)]
pub fn is_valid_pubkey<T>(string: T) -> Result<(), String>
@ -176,7 +176,7 @@ where
// also provided and correct happens in parsing, not in validation.
#[deprecated(
since = "1.18.0",
note = "please use `SignerSourceParserBuilder::default().build()` instead"
note = "please use `SignerSourceParserBuilder::default().allow_all().build()` instead"
)]
#[allow(deprecated)]
pub fn is_valid_signer<T>(string: T) -> Result<(), String>