diff --git a/svm/src/transaction_processor.rs b/svm/src/transaction_processor.rs index 9043ee9858d3c4..211f94a60ba9e4 100644 --- a/svm/src/transaction_processor.rs +++ b/svm/src/transaction_processor.rs @@ -356,11 +356,10 @@ impl TransactionBatchProcessor { saturating_add_assign!(*count, 1); } Entry::Vacant(entry) => { - if callbacks - .account_matches_owners(key, program_owners) - .is_some() - { - entry.insert(1); + if let Some(account) = callbacks.get_account_shared_data(key) { + if program_owners.contains(account.owner()) { + entry.insert(1); + } } } });