Skip to main content

syscall_charge_fuel_impl

Function syscall_charge_fuel_impl 

Source
pub fn syscall_charge_fuel_impl(
    ctx: &mut RuntimeContext,
    fuel_consumed: u64,
) -> Result<(), TrapCode>
Expand description

Adds the consumed fuel to the runtime context and checks against the context fuel limit.