private AccountSharedData.rent_epoch (#16877)

This commit is contained in:
Jeff Washington (jwash)
2021-04-28 08:52:20 -05:00
committed by GitHub
parent 6381ee38eb
commit da3342759b
5 changed files with 19 additions and 17 deletions

View File

@ -56,7 +56,7 @@ impl<'a> KeyedAccount<'a> {
}
pub fn rent_epoch(&self) -> Result<Epoch, InstructionError> {
Ok(self.try_borrow()?.rent_epoch)
Ok(self.try_borrow()?.rent_epoch())
}
pub fn try_account_ref(&'a self) -> Result<Ref<AccountSharedData>, InstructionError> {