ContractDeployer.deployVote() method
Deploys a new Vote contract
Example
const contractAddress = await sdk.deployer.deployVote({
name: "My Vote",
primary_sale_recipient: "your-address",
voting_token_address: "your-token-contract-address",
});
Signature:
deployVote(metadata: VoteContractDeployMetadata): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
metadata | VoteContractDeployMetadata | the contract metadata |
Returns:
Promise<string>
the address of the deployed contract
Remarks
Deploys an Vote contract and returns the address of the deployed contract