Skip to main content

@midnight/ledger v2.0.8Readme | API


@midnight/ledger v2.0.8 / ContractDeploy

Class: ContractDeploy

A contract deployment segment, instructing the creation of a new contract address, if not already present

Constructors

new ContractDeploy(initial_state)

new ContractDeploy(initial_state): ContractDeploy

Creates a deployment for an arbitrary contract state

The deployment and its address are randomised.

Parameters

initial_state: ContractState

Returns

ContractDeploy

Properties

address

readonly address: string;

The address this deployment will attempt to create


initialState

readonly initialState: ContractState;

Methods

toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string