Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit dcfc02b

Browse files
[token-cli] Fix panicking behavior from sign_only (#7527)
fix panicking behavior from `sign_only`
1 parent 4b91491 commit dcfc02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

token/cli/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'a> Config<'a> {
106106
CommitmentConfig::confirmed(),
107107
DEFAULT_CONFIRM_TX_TIMEOUT,
108108
));
109-
let sign_only = matches.is_present(SIGN_ONLY_ARG.name);
109+
let sign_only = matches.try_contains_id(SIGN_ONLY_ARG.name).unwrap_or(false);
110110
let program_client: Arc<dyn ProgramClient<ProgramRpcClientSendTransaction>> = if sign_only {
111111
let blockhash = matches
112112
.get_one::<Hash>(BLOCKHASH_ARG.name)

0 commit comments

Comments
 (0)