Record instructions after account translation
This commit is contained in:
@ -1367,8 +1367,7 @@ fn call<'a>(
|
|||||||
memory_mapping,
|
memory_mapping,
|
||||||
)?;
|
)?;
|
||||||
verify_instruction(syscall, &instruction, &signers)?;
|
verify_instruction(syscall, &instruction, &signers)?;
|
||||||
invoke_context.record_instruction(&instruction);
|
let message = Message::new(&[instruction.clone()], None);
|
||||||
let message = Message::new(&[instruction], None);
|
|
||||||
let callee_program_id_index = message.instructions[0].program_id_index as usize;
|
let callee_program_id_index = message.instructions[0].program_id_index as usize;
|
||||||
let callee_program_id = message.account_keys[callee_program_id_index];
|
let callee_program_id = message.account_keys[callee_program_id_index];
|
||||||
let (accounts, account_refs) = syscall.translate_accounts(
|
let (accounts, account_refs) = syscall.translate_accounts(
|
||||||
@ -1378,6 +1377,8 @@ fn call<'a>(
|
|||||||
memory_mapping,
|
memory_mapping,
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
invoke_context.record_instruction(&instruction);
|
||||||
|
|
||||||
// Process instruction
|
// Process instruction
|
||||||
|
|
||||||
let program_account = (*accounts[callee_program_id_index]).clone();
|
let program_account = (*accounts[callee_program_id_index]).clone();
|
||||||
|
Reference in New Issue
Block a user