Skip to main content

createWitnessContext

@midnight-ntwrk/compact-runtime v0.14.0


@midnight-ntwrk/compact-runtime / createWitnessContext

Function: createWitnessContext()

function createWitnessContext<L, PS>(
ledger,
privateState,
contractAddress): WitnessContext<L, PS>;

Internal

Internal constructor for WitnessContext.

Type Parameters

L

L

PS

PS

Parameters

ledger

L

privateState

PS

contractAddress

string

Returns

WitnessContext<L, PS>