Function pallet_democracy::pallet::dispatchables::vote
source · pub fn vote<T: Config>(
ref_index: ReferendumIndex,
vote: AccountVote<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>,
)
Expand description
Vote in a referendum. If vote.is_aye()
, the vote is to enact the proposal;
otherwise it is a vote to keep the status quo.
The dispatch origin of this call must be Signed.
ref_index
: The index of the referendum to vote for.vote
: The vote configuration.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::vote
.