Skip to main content

gas

Function gas 

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