LoadedAccountAccessor::Cached does not store Pubkey (#21030)

This commit is contained in:
Jeff Washington (jwash)
2021-11-04 10:28:04 -05:00
committed by GitHub
parent aaccba8377
commit 76e533be46
3 changed files with 22 additions and 29 deletions

View File

@@ -134,8 +134,8 @@ impl CachedAccountInner {
}
}
}
pub fn pubkey(&self) -> Pubkey {
self.pubkey
pub fn pubkey(&self) -> &Pubkey {
&self.pubkey
}
}