Skip to main content

callContractConstructor

Midnight.js API Reference v2.0.2


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / callContractConstructor

Function: callContractConstructor()

callContractConstructor<C>(options): ContractConstructorResult<C>

Calls the constructor of the given contract according to the given configuration.

Type Parameters

C

C extends Contract<any, Witnesses<any>>

Parameters

options

ContractConstructorOptions<C>

Configuration.

Returns

ContractConstructorResult<C>