Refactor: Remove program_id from process_instruction() (#20540)
* Replaces usage of program_id parameter by invoke_context.get_caller()?. * Removes "pubkey: &Pubkey" parameter from "process_instruction()".
This commit is contained in:
committed by
GitHub
parent
c16510152e
commit
f30f3bddbb
@ -175,7 +175,7 @@ native machine code before execting it in the virtual machine.",
|
||||
(Vec::from(bytes.as_slice_mut()), account_lengths)
|
||||
}
|
||||
};
|
||||
let mut invoke_context = MockInvokeContext::new(accounts);
|
||||
let mut invoke_context = MockInvokeContext::new(&bpf_loader::id(), accounts);
|
||||
let logger = invoke_context.logger.clone();
|
||||
let compute_meter = invoke_context.get_compute_meter();
|
||||
let mut instruction_meter = ThisInstructionMeter { compute_meter };
|
||||
|
Reference in New Issue
Block a user