Function pallet_treasury::pallet::dispatchables::remove_approval
source · pub fn remove_approval<T: Config<I>, I: 'static>(proposal_id: ProposalIndex)
Expand description
Force a previously approved proposal to be removed from the approval queue.
§Dispatch Origin
Must be Config::RejectOrigin
.
§Details
The original deposit will no longer be returned.
§Parameters
proposal_id
: The index of a proposal
§Complexity
- O(A) where
A
is the number of approvals
§Errors
Error::ProposalNotApproved
: Theproposal_id
supplied was not found in the approval queue, i.e., the proposal has not been approved. This could also mean the proposal does not exist altogether, thus there is no way it would have been approved in the first place.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::remove_approval
.