Skip to content

Commit

Permalink
pr
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Nov 5, 2024
1 parent 6c37fa2 commit f5c2877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ use {
packet::PACKET_DATA_SIZE,
precompiles::get_precompiles,
pubkey::Pubkey,
rent_collector::RENT_EXEMPT_RENT_EPOCH,
rent_collector::{CollectedInfo, RentCollector},
rent_debits::RentDebits,
reserved_account_keys::ReservedAccountKeys,
Expand Down Expand Up @@ -1948,7 +1949,7 @@ impl Bank {
// RENT_EXEMPT_EPOCH. In the future, we will remove rent collection
// code. Therefore, we should set rent_epoch here, and don't depend on
// rent collection code to update rent_epoch..
self.adjust_sysvar_rent_epoch(&mut new_account);
new_account.set_rent_epoch(RENT_EXEMPT_RENT_EPOCH);
self.store_account_and_update_capitalization(pubkey, &new_account);
}

Expand Down

0 comments on commit f5c2877

Please sign in to comment.