Skip to main content

block_number

Function block_number 

pub fn block_number<IT, H>(
    context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>
where IT: InterpreterTypes, H: Host + ?Sized,
Expand description

Implements the NUMBER instruction.

Pushes the current block number onto the stack.