Class CLValueResult

Represents a Result type in the Casper type system. A Result can either be a success (Ok) or an error (Err).

Hierarchy

  • CLValueResult

Constructors

Properties

Methods

Constructors

Properties

inner: CLValue
isSuccess: boolean

Methods

  • Converts the Result to its byte representation. Includes a success flag byte (1 for success, 0 for error) followed by the bytes of the inner value.

    Returns

    A Uint8Array representing the bytes of the Result.

    Returns Uint8Array

  • Converts the instance to a JSON-compatible format.

    Returns

    The JSON representation of the inner value.

    Calls toJSON() on the inner value to produce its JSON representation.

    Returns any

  • Provides a string representation of the Result.

    Returns

    A string representation of the Result, either "Ok(innerValue)" or "Err(innerValue)".

    Returns string

Generated using TypeDoc