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

@ -183,7 +183,7 @@ impl PreAccount {
}
// No one modifies rent_epoch (yet).
let rent_epoch_changed = pre.rent_epoch != post.rent_epoch;
let rent_epoch_changed = pre.rent_epoch() != post.rent_epoch();
if rent_epoch_changed {
return Err(InstructionError::RentEpochModified);
}