Skip to main content

VmResults

@midnight-ntwrk/ledger v3.0.2 β€’ Readme | API


@midnight-ntwrk/ledger v3.0.2 / VmResults

Class: VmResults

Represents the results of a VM call

Constructors​

new VmResults()​

private new VmResults(): VmResults

Returns​

VmResults

Properties​

events​

readonly events: GatherResult[];

The events that got emitted by this VM invocation


gasCost​

readonly gasCost: bigint;

The computed gas cost of running this VM invocation


stack​

readonly stack: VmStack;

The VM stack at the end of the VM invocation

Methods​

toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string