Skip to main content

gas

Function gas 

pub fn gas<WIRE, H>(context: InstructionContext<'_, H, WIRE>)
where WIRE: InterpreterTypes, H: ?Sized,
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.