diff --git a/src/proto_alpha/bin_sc_rollup_node/fuel.ml b/src/proto_alpha/bin_sc_rollup_node/fuel.ml index e05b7638f1b1965a812c7c66305f83606f6825fa..0ba889d6e61c8c7769f8bc68b0dc26a29551e36f 100644 --- a/src/proto_alpha/bin_sc_rollup_node/fuel.ml +++ b/src/proto_alpha/bin_sc_rollup_node/fuel.ml @@ -80,7 +80,8 @@ module Accounted : S = struct let one_tick_consumption = 1L let consume consumption fuel = - if Int64.compare fuel consumption > 0 then Some (Int64.sub fuel consumption) + if Int64.compare fuel consumption >= 0 then + Some (Int64.sub fuel consumption) else None let is_empty fuel = Int64.compare fuel 0L <= 0