Closed koute closed 3 months ago
consume_gas should return whether there's still gas left (probably by returning a Return, e.g. Result<T, OutOfGas> and then make OutOfGas convertible into a Trap with ?; also perhaps have a special error type here instead of always returning Trap
consume_gas
Return
Result<T, OutOfGas>
OutOfGas
Trap
?
consume_gas
should return whether there's still gas left (probably by returning aReturn
, e.g.Result<T, OutOfGas>
and then makeOutOfGas
convertible into aTrap
with?
; also perhaps have a special error type here instead of always returningTrap