Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / deployContractWithLinkedLibraries

Variable: deployContractWithLinkedLibraries()

const deployContractWithLinkedLibraries: <T>(contractFactory, signer?, ...args) => Promise<T>

Defined in: contracts/build/ts/deploy.d.ts:245

Deploy a contract with linked libraries

Type Parameters​

T​

T extends BaseContract

Parameters​

contractFactory​

ContractFactory

the contract factory to use

signer?​

Signer

the signer to use for deployment (optional)

args?​

...unknown[]

the constructor arguments of the contract

Returns​

Promise<T>

the deployed contract instance