pub fn vote<T: Config<I>, I: 'static>(
    proposal: T::Hash,
    index: ProposalIndex,
    approve: bool
)
Expand description

Add an aye or nay vote for the sender to the given proposal.

Requires the sender to be a member.

Transaction fees will be waived if the member is voting on any particular proposal for the first time and the call is successful. Subsequent vote changes will charge a fee.

Complexity

  • O(M) where M is members-count (code- and governance-bounded)

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::vote.