Update sysvar API in SVM integration test (#451)

This commit is contained in:
Lucas Steuernagel 2024-03-27 13:49:43 -03:00 committed by GitHub
parent 4b9e1e0ab3
commit 02918a5af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 9 deletions

View File

@ -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 {