From 08bac17b4ff358e53c9215f9d03621dc8d97a96e Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Tue, 26 Nov 2024 10:37:23 +0900 Subject: [PATCH] fix panicking behavior from `sign_only` --- token/cli/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token/cli/src/config.rs b/token/cli/src/config.rs index 0ea6284bb78..ee3a4dc903d 100644 --- a/token/cli/src/config.rs +++ b/token/cli/src/config.rs @@ -106,7 +106,7 @@ impl<'a> Config<'a> { CommitmentConfig::confirmed(), DEFAULT_CONFIRM_TX_TIMEOUT, )); - let sign_only = matches.is_present(SIGN_ONLY_ARG.name); + let sign_only = matches.try_contains_id(SIGN_ONLY_ARG.name).unwrap_or(false); let program_client: Arc> = if sign_only { let blockhash = matches .get_one::(BLOCKHASH_ARG.name)