Moves InvokeContext::return_data to TransactionContext. (#22411)
This commit is contained in:
committed by
GitHub
parent
9bc2592da1
commit
aadf4b9b63
@ -226,13 +226,13 @@ fn run_program(name: &str) -> u64 {
|
||||
let mut instruction_count = 0;
|
||||
let mut tracer = None;
|
||||
for i in 0..2 {
|
||||
invoke_context.return_data = (
|
||||
invoke_context.transaction_context.set_return_data(
|
||||
*invoke_context
|
||||
.transaction_context
|
||||
.get_program_key()
|
||||
.unwrap(),
|
||||
Vec::new(),
|
||||
);
|
||||
).unwrap();
|
||||
let mut parameter_bytes = parameter_bytes.clone();
|
||||
{
|
||||
let mut vm = create_vm(
|
||||
|
Reference in New Issue
Block a user