Add get_balance() and get_account_data() to SyncClient

Migrate tests to use them.
This commit is contained in:
Greg Fitzgerald
2019-04-03 16:36:10 -06:00
parent 5cd7bccdf3
commit 167f5bdc58
8 changed files with 104 additions and 81 deletions

View File

@ -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()
);
}