Add clap.rs default for --commitment (#9859)

This commit is contained in:
Michael Vines
2020-05-02 13:06:35 -07:00
committed by GitHub
parent f37f83fd12
commit ffbbdd46e8
3 changed files with 12 additions and 27 deletions

View File

@@ -315,8 +315,7 @@ pub fn parse_vote_get_account_command(
let vote_account_pubkey =
pubkey_of_signer(matches, "vote_account_pubkey", wallet_manager)?.unwrap();
let use_lamports_unit = matches.is_present("lamports");
let commitment_config =
commitment_of(matches, COMMITMENT_ARG.long).unwrap_or_else(CommitmentConfig::recent);
let commitment_config = commitment_of(matches, COMMITMENT_ARG.long).unwrap();
Ok(CliCommandInfo {
command: CliCommand::ShowVoteAccount {
pubkey: vote_account_pubkey,