From c8c0815144e14e19fbe68fa7da17b706fcfd5e4a Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 10 Aug 2019 13:15:29 -0700 Subject: [PATCH] Permit keypair files for create-validator-storage-account --- wallet/src/wallet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallet/src/wallet.rs b/wallet/src/wallet.rs index 2fd6f1a6d..f1155015b 100644 --- a/wallet/src/wallet.rs +++ b/wallet/src/wallet.rs @@ -1780,7 +1780,7 @@ pub fn app<'ab, 'v>(name: &str, about: &'ab str, version: &'v str) -> App<'ab, ' .value_name("STORAGE ACCOUNT OWNER PUBKEY") .takes_value(true) .required(true) - .validator(is_pubkey) + .validator(is_pubkey_or_keypair) ) .arg( Arg::with_name("storage_account_pubkey") @@ -1788,7 +1788,7 @@ pub fn app<'ab, 'v>(name: &str, about: &'ab str, version: &'v str) -> App<'ab, ' .value_name("STORAGE ACCOUNT PUBKEY") .takes_value(true) .required(true) - .validator(is_pubkey) + .validator(is_pubkey_or_keypair) ) ) .subcommand(