Skip to main content

syscall_charge_fuel_handler

Function syscall_charge_fuel_handler 

Source
pub fn syscall_charge_fuel_handler(
    caller: &mut impl StoreTr<RuntimeContext>,
    params: &[Value],
    _result: &mut [Value],
) -> Result<(), TrapCode>
Expand description

Consumes fuel from the engine and mirrors the consumption in the runtime context.