insert_call_outcome

Function insert_call_outcome 

Source
pub(crate) fn insert_call_outcome(
    interpreter: &mut Interpreter<EthInterpreter>,
    outcome: InterpreterResult,
    return_memory_offset: Option<Range<usize>>,
)
Expand description

Insert call outcome into interpreter state.

This mimics what revm-handler does in insert_call_outcome:

  • Push success indicator (1 or 0) onto stack
  • Copy return data to memory at the specified offset
  • Return unspent gas to parent
  • Record refunds on success