Fortress
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.
1
function cancel(uint proposalId)
Copied!
  • proposalId: ID of a proposal that has succeeded.
  • 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 9mo ago
Copy link