Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Jan 24, 2024
1 parent 3b98447 commit 5725338
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions program-runtime/src/message_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ mod tests {
rent::Rent,
reserved_account_keys::ReservedAccountKeys,
secp256k1_instruction::new_secp256k1_instruction,
secp256k1_program,
secp256k1_program, system_program,
},
};

Expand Down Expand Up @@ -625,6 +625,10 @@ mod tests {
let mut mock_program_account = AccountSharedData::new(1, 0, &native_loader::id());
mock_program_account.set_executable(true);
let accounts = vec![
(
Pubkey::new_unique(),
AccountSharedData::new(1, 0, &system_program::id()),
),
(secp256k1_program::id(), secp256k1_account),
(mock_program_id, mock_program_account),
];
Expand All @@ -649,7 +653,7 @@ mod tests {
new_secp256k1_instruction(&secret_key, b"hello"),
Instruction::new_with_bytes(mock_program_id, &[], vec![]),
],
None,
Some(transaction_context.get_key_of_account_at_index(0).unwrap()),
));
let sysvar_cache = SysvarCache::default();
let mut programs_loaded_for_tx_batch = LoadedProgramsForTxBatch::default();
Expand All @@ -660,7 +664,7 @@ mod tests {
let mut programs_modified_by_tx = LoadedProgramsForTxBatch::default();
let result = MessageProcessor::process_message(
&message,
&[vec![0], vec![1]],
&[vec![1], vec![2]],
&mut transaction_context,
None,
&programs_loaded_for_tx_batch,
Expand Down

0 comments on commit 5725338

Please sign in to comment.