Skip to main content

decision_proposal_vote_poll_id

Function decision_proposal_vote_poll_id 

Source
pub fn decision_proposal_vote_poll_id(
    document_id: Identifier,
    platform_version: &PlatformVersion,
) -> Result<Identifier, ProtocolError>
Expand description

The id of the yes/no poll the proposal document_id opens: the id of the purpose YesNoVotePollPurpose::DecisionProposal, which a vote on the proposal names and the poll queries take. Known from the proposal’s id alone, before or after the poll opens.

§Parameters

  • document_id: the proposal’s id.
  • platform_version: the platform version, which selects how the id is derived.

§Returns

The poll’s id, or an error before protocol version 15.