Properly type RpcClient::get_version() (#6919)

This commit is contained in:
Michael Vines
2019-11-12 22:01:04 -07:00
committed by GitHub
parent 81acd94153
commit 86faa3f995
6 changed files with 33 additions and 42 deletions

View File

@ -18,8 +18,8 @@ fn test_rpc_client() {
let client = RpcClient::new_socket(leader_data.rpc);
assert_eq!(
client.get_version().unwrap(),
format!("{{\"solana-core\":\"{}\"}}", solana_core::version!())
client.get_version().unwrap().solana_core,
solana_core::version!()
);
assert_eq!(client.get_balance(&bob_pubkey).unwrap(), 0);