Function democracy::pallet::dispatchables::vote
source · pub fn vote<T: Config>(
ref_index: ReferendumIndex,
vote: Vote<<<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.
Weight: O(R)
where R is the number of referendums the voter has voted on.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::vote
.