Add get_balance() and get_account_data() to SyncClient
Migrate tests to use them.
This commit is contained in:
@ -118,10 +118,10 @@ mod tests {
|
||||
.send_message(&[&from_keypair, &config_keypair], message)
|
||||
.unwrap();
|
||||
|
||||
let config_account = bank.get_account(&config_pubkey).unwrap();
|
||||
let config_account_data = bank_client.get_account_data(&config_pubkey).unwrap();
|
||||
assert_eq!(
|
||||
my_config,
|
||||
MyConfig::deserialize(&config_account.data).unwrap()
|
||||
MyConfig::deserialize(&config_account_data).unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user