Skip to main content

addmod

pub fn addmod<IT, H>(
    context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>
where IT: InterpreterTypes, H: ?Sized,
Available on crate feature evm only.
Expand description

Implements the ADDMOD instruction.

Pops three values from stack and pushes (a + b) % n.