Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / deployContract

Variable: deployContract()

const deployContract: <T>(contractName, signer?, quiet?, ...args) => Promise<T>

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

Deploy a Smart Contract given a name and some arguments

Type Parameters​

T​

T extends BaseContract

Parameters​

contractName​

string

the name of the contract

signer?​

Signer

the signer to use to deploy the contract

quiet?​

boolean

whether to suppress console output

args?​

...unknown[]

the constructor arguments of the contract

Returns​

Promise<T>