Relieve the caller of having to care about the rpc request id
This commit is contained in:
@@ -47,7 +47,7 @@ fn test_wallet_deploy_program() {
|
||||
|
||||
let params = json!([program_id_str]);
|
||||
let account_info = rpc_client
|
||||
.make_rpc_request(1, RpcRequest::GetAccountInfo, Some(params))
|
||||
.make_rpc_request(RpcRequest::GetAccountInfo, Some(params))
|
||||
.unwrap();
|
||||
let account_info_obj = account_info.as_object().unwrap();
|
||||
assert_eq!(
|
||||
|
@@ -14,7 +14,7 @@ use std::sync::mpsc::channel;
|
||||
use solana::fullnode::new_fullnode_for_tests;
|
||||
|
||||
fn check_balance(expected_balance: u64, client: &RpcClient, pubkey: &Pubkey) {
|
||||
let balance = client.retry_get_balance(1, pubkey, 1).unwrap().unwrap();
|
||||
let balance = client.retry_get_balance(pubkey, 1).unwrap().unwrap();
|
||||
assert_eq!(balance, expected_balance);
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ fn test_wallet_request_airdrop() {
|
||||
let rpc_client = RpcClient::new_socket(leader_data.rpc);
|
||||
|
||||
let balance = rpc_client
|
||||
.retry_get_balance(1, &bob_config.id.pubkey(), 1)
|
||||
.retry_get_balance(&bob_config.id.pubkey(), 1)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
assert_eq!(balance, 50);
|
||||
|
Reference in New Issue
Block a user