rename balance (#5984)

This commit is contained in:
Rob Walker
2019-09-23 15:20:45 -07:00
committed by GitHub
parent 62c22c6cb1
commit 72fb52ec60
3 changed files with 53 additions and 49 deletions

View File

@@ -308,7 +308,7 @@ impl Accounts {
pub fn load_by_program_fork(&self, fork: Fork, program_id: &Pubkey) -> Vec<(Pubkey, Account)> {
self.scan_fork(fork, |stored_account| {
if stored_account.balance.owner == *program_id {
if stored_account.account_meta.owner == *program_id {
Some((stored_account.meta.pubkey, stored_account.clone_account()))
} else {
None