automerge
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
use crate::{
|
||||
hash::Hash,
|
||||
instruction::InstructionError,
|
||||
{clock::Epoch, pubkey::Pubkey},
|
||||
};
|
||||
use crate::{clock::Epoch, hash::Hash, instruction::InstructionError, pubkey::Pubkey};
|
||||
use std::{
|
||||
cell::{Ref, RefCell, RefMut},
|
||||
cmp, fmt,
|
||||
@@ -183,6 +179,10 @@ impl<'a> KeyedAccount<'a> {
|
||||
Ok(self.try_borrow()?.executable)
|
||||
}
|
||||
|
||||
pub fn rent_epoch(&self) -> Result<Epoch, InstructionError> {
|
||||
Ok(self.try_borrow()?.rent_epoch)
|
||||
}
|
||||
|
||||
pub fn try_account_ref(&'a self) -> Result<Ref<Account>, InstructionError> {
|
||||
self.try_borrow()
|
||||
}
|
||||
|
Reference in New Issue
Block a user