Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/ledger v3.0.2 / 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