Move CLI offline args to clap-utils

This commit is contained in:
Trent Nelson
2020-09-21 17:58:38 -06:00
committed by Trent Nelson
parent 3fb8428636
commit 6cf74d1166
5 changed files with 58 additions and 54 deletions

View File

@@ -6,7 +6,7 @@ use crate::{
},
cli_output::{CliStakeHistory, CliStakeHistoryEntry, CliStakeState, CliStakeType},
nonce::check_nonce_account,
offline::{blockhash_query::BlockhashQuery, *},
offline::blockhash_query::BlockhashQuery,
spend_utils::{resolve_spend_tx_and_check_account_balances, SpendAmount},
};
use clap::{App, Arg, ArgGroup, ArgMatches, SubCommand};
@@ -1762,7 +1762,10 @@ pub fn process_delegate_stake(
#[cfg(test)]
mod tests {
use super::*;
use crate::cli::{app, parse_command};
use crate::{
cli::{app, parse_command},
offline::blockhash_query,
};
use solana_sdk::{
hash::Hash,
signature::{