private AccountSharedData.rent_epoch (#16844)

This commit is contained in:
Jeff Washington (jwash)
2021-04-27 13:51:13 -05:00
committed by GitHub
parent 2f5102587c
commit 1bd623cd15
6 changed files with 24 additions and 21 deletions

View File

@@ -1474,8 +1474,8 @@ mod tests {
self
}
pub fn rent_epoch(mut self, pre: u64, post: u64) -> Self {
self.pre.account.borrow_mut().rent_epoch = pre;
self.post.rent_epoch = post;
self.pre.account.borrow_mut().set_rent_epoch(pre);
self.post.set_rent_epoch(post);
self
}
pub fn verify(&self) -> Result<(), InstructionError> {