Type alias BytecodeGenerationErrorBase<ProgramState>

BytecodeGenerationErrorBase<ProgramState>: {
    errors: CompilationError[];
    index: number;
    resolved?: ResolvedScript<ProgramState>;
    type: "locking" | "unlocking";
}

An error resulting from unsuccessful bytecode generation. Includes the generation type (locking or unlocking), and the output or input index

Type Parameters

  • ProgramState

Type declaration

  • errors: CompilationError[]

    The compilation errors that occurred while generating this bytecode.

  • index: number

    The input or output index for which this bytecode was being generated. (To )

  • Optional resolved?: ResolvedScript<ProgramState>

    If the error occurred after the parse stage, the resolved script is provided for analysis or processing (e.g. getResolvedBytecode).

  • type: "locking" | "unlocking"

    The type of bytecode that was being generated when this error occurred.

Generated using TypeDoc