Skip to main content

swapn

Function swapn 

pub fn swapn<WIRE, H>(context: InstructionContext<'_, H, WIRE>)
where WIRE: InterpreterTypes, H: ?Sized,
Available on crate feature evm only.
Expand description

Implements the SWAPN instruction.

Swaps the top stack item with the N+1th stack item, with N given by an immediate.