Skip to main content

ContractDeploy

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


@midnight-ntwrk/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