Annex Docs
Search…
Cancel
Cancel a proposal that has not yet been executed. The Guardian is the only one who may execute this unless the proposer does not maintain the delegates required to create a proposal. If the proposer does not have more delegates than the proposal threshold, anyone can cancel the proposal.
Governor Alpha
1
function cancel(uint proposalId)
Copied!
  • proposalId: ID of a proposal to cancel. The proposal cannot have already been executed.
  • RETURN: No return, reverts on error.
Solidity
1
GovernorAlpha gov = GovernorAlpha(0x123...); // contract address
2
gov.cancel(proposalId);
Copied!
Web3 1.2.6
1
const tx = gov.methods.cancel(proposalId).send({ from: sender });
Copied!
Last modified 4mo ago
Copy link