Skip to main content

Midnight.js API Reference v1.0.0


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>