Skip to content

Commit d1d6490

Browse files
committed
svm: remove NativeLoader-owned rent assert (#9574)
(cherry picked from commit 1a7bbc5)
1 parent f5a29bf commit d1d6490

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

svm/src/transaction_account_state_info.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
use {
22
crate::rent_calculator::{check_rent_state, get_account_rent_state, RentState},
3-
solana_account::ReadableAccount,
43
solana_rent::Rent,
5-
solana_sdk_ids::native_loader,
64
solana_svm_transaction::svm_message::SVMMessage,
75
solana_transaction_context::{IndexOfAccount, TransactionContext},
86
solana_transaction_error::TransactionResult as Result,
@@ -26,10 +24,6 @@ impl TransactionAccountStateInfo {
2624
.accounts()
2725
.try_borrow(i as IndexOfAccount)
2826
{
29-
// Native programs appear to be RentPaying because they carry low lamport
30-
// balances; however they will never be loaded as writable
31-
debug_assert!(!native_loader::check_id(account.owner()));
32-
3327
Some(get_account_rent_state(rent, &account))
3428
} else {
3529
None

0 commit comments

Comments
 (0)