Skip to main content

ContractDeploy

@midnight/ledger v7.0.0


@midnight/ledger / ContractDeploy

Class: ContractDeploy

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

Constructors

Constructor

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