owner -> owner() (#16783)

This commit is contained in:
Jeff Washington (jwash)
2021-04-26 12:06:40 -05:00
committed by GitHub
parent aeff911c93
commit f2ab0384e4
10 changed files with 30 additions and 30 deletions

View File

@@ -280,7 +280,7 @@ impl<'a> LoadedAccount<'a> {
pub fn owner(&self) -> &Pubkey {
match self {
LoadedAccount::Stored(stored_account_meta) => &stored_account_meta.account_meta.owner,
LoadedAccount::Cached((_, cached_account)) => &cached_account.account.owner,
LoadedAccount::Cached((_, cached_account)) => &cached_account.account.owner(),
}
}
@@ -3254,7 +3254,7 @@ impl AccountsDb {
let mut hasher = Hasher::default();
hasher.hash(&account.data());
hasher.hash(&account.owner.as_ref());
hasher.hash(&account.owner().as_ref());
if account.executable {
hasher.hash(&[1u8; 1]);