polkavm icon indicating copy to clipboard operation
polkavm copied to clipboard

Improve gas consumption ergonomics from within the host calls

Open koute opened this issue 1 year ago • 0 comments

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

koute avatar Jan 30 '24 12:01 koute