Simplifies return_data accessors in InvokeContext. (#20290)

This commit is contained in:
Alexander Meißner
2021-09-29 19:11:06 +02:00
committed by GitHub
parent 57c8abf499
commit 4de5fff3ca
6 changed files with 58 additions and 74 deletions

View File

@ -602,7 +602,7 @@ impl InstructionProcessor {
invoke_context.verify_and_update(instruction, account_indices, caller_write_privileges)?;
// clear the return data
invoke_context.set_return_data(None);
invoke_context.set_return_data(Vec::new())?;
// Invoke callee
invoke_context.push(