polkavm
polkavm copied to clipboard
Improve gas consumption ergonomics from within the host calls
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