- Implicitly fixes invoke_context.return_data not being reset between instructions in process_message. (#21671)

- Lets InvokeContext::process_cross_program_instruction() handle the first invocation depth too.
- Marks InvokeContext::verify(), InvokeContext::verify_and_update() and InvokeContext::process_executable_chain() private.
- Renames InvokeContext::process_cross_program_instruction() to InvokeContext::process_instruction().
- Removes InvokeContext::new_mock_with_sysvars().
This commit is contained in:
Alexander Meißner
2021-12-07 23:00:04 +01:00
committed by GitHub
parent 94b1cf47ca
commit 1df88837c8
7 changed files with 91 additions and 97 deletions

View File

@ -213,7 +213,7 @@ native machine code before execting it in the virtual machine.",
&preparation.message,
&preparation.message.instructions[0],
&program_indices,
Some(&preparation.account_indices),
&preparation.account_indices,
)
.unwrap();
let keyed_accounts = invoke_context.get_keyed_accounts().unwrap();