Skip to content

Commit

Permalink
[token-cli] Fix panicking behavior from sign_only (#7527)
Browse files Browse the repository at this point in the history
fix panicking behavior from `sign_only`
  • Loading branch information
samkim-crypto authored Nov 27, 2024
1 parent 4b91491 commit dcfc02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn ProgramClient<ProgramRpcClientSendTransaction>> = if sign_only {
let blockhash = matches
.get_one::<Hash>(BLOCKHASH_ARG.name)
Expand Down

0 comments on commit dcfc02b

Please sign in to comment.