referrerpolicy=no-referrer-when-downgrade

Function pallet_ranked_collective::pallet::dispatchables::vote

source ·
pub fn vote<T: Config<I>, I: 'static>(poll: PollIndexOf<T, I>, aye: bool)
Expand description

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

  • origin: Must be Signed by a member account.
  • poll: Index of a poll which is ongoing.
  • aye: true if the vote is to approve the proposal, false otherwise.

Transaction fees are 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.

Weight: O(1), less if there was no previous vote on the poll by the member.

§Warning: Doc-Only

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