Skip to content

Commit

Permalink
fix panicking behavior from sign_only
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Nov 26, 2024
1 parent eb62c69 commit 08bac17
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 08bac17

Please sign in to comment.