From 02918a5af1f90a05f2c72b338dd3c0dd967c0f6f Mon Sep 17 00:00:00 2001 From: Lucas Steuernagel <38472950+LucasSte@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:49:43 -0300 Subject: [PATCH] Update sysvar API in SVM integration test (#451) --- svm/tests/integration_test.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/svm/tests/integration_test.rs b/svm/tests/integration_test.rs index 4104ed401..5095fc164 100644 --- a/svm/tests/integration_test.rs +++ b/svm/tests/integration_test.rs @@ -443,15 +443,7 @@ fn svm_integration() { ); // The sysvars must be put in the cache - batch_processor - .sysvar_cache - .write() - .unwrap() - .fill_missing_entries(|pubkey, callback| { - if let Some(account) = mock_bank.get_account_shared_data(pubkey) { - callback(account.data()); - } - }); + batch_processor.fill_missing_sysvar_cache_entries(&mock_bank); let mut error_counter = TransactionErrorMetrics::default(); let recording_config = ExecutionRecordingConfig {