Function gas
pub fn gas<IT, H>(
context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>where
IT: 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.