Function gas
pub fn gas<WIRE, H>(context: InstructionContext<'_, H, WIRE>)where
WIRE: InterpreterTypes,
H: ?Sized,Available on crate feature
evm only.Expand description
Implements the GAS instruction.
Pushes the amount of remaining gas onto the stack.
Returns gas_left only (excluding the state gas reservoir) per EIP-8037.
On mainnet (no state gas), this is equivalent to returning remaining.