Class Revert

Base definition for any type that is Stmt.

Hierarchy

  • Revert

Implements

Constructors

  • Stop the current context execution, revert the state changes (see STATICCALL for a list of state changing opcodes) and return the unused gas to the caller.

    It also reverts the gas refund to its value before the current context. If the execution is stopped with REVERT, the value 0 is put on the stack of the calling context, which continues to execute normally. The return data of the calling context is set as the given chunk of memory of this context.

    Parameters

    • offset: Expr

      byte offset in the memory in bytes. The return data of the calling context.

    • size: Expr

      byte size to copy (size of the return data).

    • Optional selector: string
    • Optional sig: {
          sig?: string;
      }
      • Optional sig?: string
    • Optional args: Expr[]

    Returns Revert

Properties

args?: Expr[]
name: "Revert" = 'Revert'

The name tag of this IStmt.

offset: Expr

byte offset in the memory in bytes. The return data of the calling context.

selector?: string
sig?: {
    sig?: string;
}

Type declaration

  • Optional sig?: string
size: Expr

byte size to copy (size of the return data).

ERROR: "08c379a0" = '08c379a0'
PANIC: "4e487b71" = '4e487b71'

Methods

Generated using TypeDoc v0.25.2