Vote.execute() method
Execute Proposal
Example
// The proposal ID ofthe proposal you want to execute
const proposalId = "0";
await contract.execute(proposalId);
Signature:
execute(proposalId: string): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
proposalId | string | The proposal id to execute. |
Returns:
Promise<TransactionResult>
Remarks
Execute the related transactions for a proposal if the proposal succeeded.