diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index fd0bc11ea148fe..134b528fdfb650 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -485,8 +485,14 @@ impl RpcClient { } let Response { context, - value: rpc_account, - } = serde_json::from_value::>>(result_json)?; + value: mut rpc_account, + } = serde_json::from_value::>>(result_json).expect("weird error"); + use solana_account_decoder::UiAccountData::{Binary, Binary64}; + if let Some(ref mut account) = rpc_account { + if let Binary(data) = &account.data { + account.data = Binary64(data.clone()); + } + } trace!("Response account {:?} {:?}", pubkey, rpc_account); let account = rpc_account.and_then(|rpc_account| rpc_account.decode()); Ok(Response {