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
Initializes the factory with the Poll implementation.
deploy
function deploy(struct IPollFactory.DeployPollArgs _args) public virtual returns (address pollAddr)
Deploy a new Poll contract
Parameters
| Name | Type | Description |
|---|---|---|
| _args | struct IPollFactory.DeployPollArgs | The arguments for the poll deployment |
Return Values
| Name | Type | Description |
|---|---|---|
| pollAddr | address | The deployed Poll contract |