Skip to main content
Version: v3.x

PollFactory

A factory contract which deploys Poll contracts. It allows the MACI contract size to stay within the limit set by EIP-170.

constructor

constructor() public payable

The PollFactory constructor

deploy

function deploy(struct IPollFactory.DeployPollArgs _args) public virtual returns (address pollAddr)

Deploy a new Poll contract

Parameters

NameTypeDescription
_argsstruct IPollFactory.DeployPollArgsThe arguments for the poll deployment

Return Values

NameTypeDescription
pollAddraddressThe deployed Poll contract