account subcommand now requests binary64

This commit is contained in:
Michael Vines 2020-08-09 12:50:18 -07:00 committed by mergify[bot]
parent fe3729c33e
commit a4f5f3e978
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ pub enum UiAccountData {
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
#[serde(rename_all = "camelCase")]
pub enum UiAccountEncoding {
Binary,
Binary, // SLOW! Avoid this encoding
JsonParsed,
Binary64,
}

View File

@ -1120,7 +1120,7 @@ fn process_show_account(
let cli_account = CliAccount {
keyed_account: RpcKeyedAccount {
pubkey: account_pubkey.to_string(),
account: UiAccount::encode(account_pubkey, account, UiAccountEncoding::Binary, None),
account: UiAccount::encode(account_pubkey, account, UiAccountEncoding::Binary64, None),
},
use_lamports_unit,
};