diff --git a/programs/sbf/tests/programs.rs b/programs/sbf/tests/programs.rs index 19f6b943a51769..b87b60c154400f 100644 --- a/programs/sbf/tests/programs.rs +++ b/programs/sbf/tests/programs.rs @@ -33,7 +33,10 @@ use { load_upgradeable_program_wrapper, set_upgrade_authority, upgrade_program, }, }, - solana_runtime_transaction::instructions_processor::process_compute_budget_instructions, + solana_runtime_transaction::{ + instructions_processor::process_compute_budget_instructions, + runtime_transaction::RuntimeTransaction, + }, solana_sbf_rust_invoke_dep::*, solana_sbf_rust_realloc_dep::*, solana_sbf_rust_realloc_invoke_dep::*, @@ -652,7 +655,10 @@ fn test_return_data_and_log_data_syscall() { let blockhash = bank.last_blockhash(); let message = Message::new(&[instruction], Some(&mint_keypair.pubkey())); let transaction = Transaction::new(&[&mint_keypair], message, blockhash); - let sanitized_tx = SanitizedTransaction::from_transaction_for_tests(transaction); + let sanitized_tx = RuntimeTransaction::try_from_sanitized_transaction( + SanitizedTransaction::from_transaction_for_tests(transaction), + ) + .unwrap(); let result = bank.simulate_transaction(&sanitized_tx, false); diff --git a/programs/sbf/tests/simulation.rs b/programs/sbf/tests/simulation.rs index a1a9f6a6ce8ab0..bff3052e5d555d 100644 --- a/programs/sbf/tests/simulation.rs +++ b/programs/sbf/tests/simulation.rs @@ -8,6 +8,7 @@ use { genesis_utils::{create_genesis_config, GenesisConfigInfo}, loader_utils::load_upgradeable_program_and_advance_slot, }, + solana_runtime_transaction::runtime_transaction::RuntimeTransaction, solana_sdk::{ instruction::{AccountMeta, Instruction}, message::Message, @@ -50,7 +51,10 @@ fn test_no_panic_banks_client() { let blockhash = bank.last_blockhash(); let message = Message::new(&[instruction], Some(&mint_keypair.pubkey())); let transaction = Transaction::new(&[&mint_keypair], message, blockhash); - let sanitized_tx = SanitizedTransaction::from_transaction_for_tests(transaction); + let sanitized_tx = RuntimeTransaction::try_from_sanitized_transaction( + SanitizedTransaction::from_transaction_for_tests(transaction), + ) + .unwrap(); let result = bank.simulate_transaction(&sanitized_tx, false); assert!(result.result.is_ok()); } diff --git a/programs/sbf/tests/sysvar.rs b/programs/sbf/tests/sysvar.rs index c0ab5321c5bf4f..d5728cb7b0837d 100644 --- a/programs/sbf/tests/sysvar.rs +++ b/programs/sbf/tests/sysvar.rs @@ -8,6 +8,7 @@ use { genesis_utils::{create_genesis_config, GenesisConfigInfo}, loader_utils::load_upgradeable_program_and_advance_slot, }, + solana_runtime_transaction::runtime_transaction::RuntimeTransaction, solana_sdk::{ instruction::{AccountMeta, Instruction}, message::Message, @@ -74,7 +75,10 @@ fn test_sysvar_syscalls() { let blockhash = bank.last_blockhash(); let message = Message::new(&[instruction], Some(&mint_keypair.pubkey())); let transaction = Transaction::new(&[&mint_keypair], message, blockhash); - let sanitized_tx = SanitizedTransaction::from_transaction_for_tests(transaction); + let sanitized_tx = RuntimeTransaction::try_from_sanitized_transaction( + SanitizedTransaction::from_transaction_for_tests(transaction), + ) + .unwrap(); let result = bank.simulate_transaction(&sanitized_tx, false); assert!(result.result.is_ok()); }