Skip to main content

ChargedState

@midnight-ntwrk/onchain-runtime v2.0.1


@midnight-ntwrk/onchain-runtime / ChargedState

Class: ChargedState

Represents a StateValue with storage annotations.

These track the state usage that has been charged for so far.

Constructors

new ChargedState()

new ChargedState(state): ChargedState

Parameters

state

StateValue

Returns

ChargedState

Properties

state

readonly state: StateValue;

Methods

toString()

toString(compact?): string

Parameters

compact?

boolean

Returns

string