Function output

Source
pub fn output<CTX: ContextTr<Journal: JournalTr<FinalOutput = JournalOutput>>, HALTREASON: HaltReasonTr>(
    context: &mut CTX,
    result: FrameResult,
) -> ResultAndState<HALTREASON>
Expand description

Calculate last gas spent and transform internal reason to external.

TODO make Journal FinalOutput more generic.