Function precompile_output_to_interpreter_result
pub fn precompile_output_to_interpreter_result(
output: PrecompileOutput,
gas_limit: u64,
) -> InterpreterResultExpand description
Converts a PrecompileOutput into an InterpreterResult.
Maps precompile status to the corresponding instruction result:
Success→InstructionResult::ReturnRevert→InstructionResult::RevertHalt(OOG)→InstructionResult::PrecompileOOGHalt(other)→InstructionResult::PrecompileError