After the Timelock delay period, any account may invoke the execute method to apply the changes from the proposal to the target contracts. This will invoke each of the actions described in the proposal.
This function is payable so the Timelock contract can invoke payable functions that were selected in the proposal. An example of execution is a proposal can change the marketplace fees.
GovernorAlpha
function execute(uint proposalId) payable
- proposalId: ID of a succeeded proposal to execute.
- RETURN: No return, reverts on error.
Solidity
GovernorAlpha gov = GovernorAlpha(0x123...); // contract address
gov.execute(proposalId).value(999).gas(999)();
Web3 1.2.6
const tx = gov.methods.execute(proposalId).send({ from: sender, value: 1 });
Would you like more info? Visit our Github!