Initializes a new instance of the CLValueOption class.
The CLValue contained in the option, or null if empty.
Optional
type: CLTypeOptionThe CLTypeOption representing the type of the option.
Optional
typeConverts the option to its byte representation. If the option is empty, it returns a Uint8Array with a single 0 byte. If it contains a value, it returns a Uint8Array with 1 followed by the inner value's bytes.
A Uint8Array representing the bytes of the option.
Static
fromCreates a CLValueOption instance from a Uint8Array. Parses the byte array to determine if the option is empty or contains a value.
An object containing the new CLValueOption instance and any remaining bytes.
The Uint8Array containing the byte representation of the Option value.
The CLTypeOption representing the type of the option.
Generated using TypeDoc
Represents an optional value in the Casper type system. An option can either contain a value or be empty (null).