Function swap
pub fn swap<const N: usize, WIRE, H>(context: InstructionContext<'_, H, WIRE>)where
WIRE: InterpreterTypes,
H: ?Sized,
Available on crate feature
evm
only.Expand description
Implements the SWAP1-SWAP16 instructions.
Swaps the top stack item with the Nth stack item.