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β
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