LibOpEnsureNP

Git Source

Opcode to revert if any condition is zero.

Functions

integrity

function integrity(IntegrityCheckStateNP memory, Operand operand) internal pure returns (uint256, uint256);

run

ensure List of conditions. If any condition is zero, the expression will revert. All conditions are eagerly evaluated and there are no outputs.

function run(InterpreterStateNP memory, Operand operand, Pointer stackTop) internal pure returns (Pointer);

referenceFn

Gas intensive reference implementation of ensure for testing.

function referenceFn(InterpreterStateNP memory, Operand operand, uint256[] memory inputs)
    internal
    pure
    returns (uint256[] memory outputs);