pub async fn vote_execute_proposal_assert_executed(
    governance_canister: &Canister<'_>,
    proposal_id: ProposalId,
) {
    // Wait for the proposal to be accepted and executed.
    assert_eq!(
        vote_and_execute_proposal(governance_canister, proposal_id)
            .await
            .status(),
        ProposalStatus::Executed
    );
}
/// Votes for and executes the proposal identified by `proposal_id`. Asserts
/// that the ProposalStatus is Executed.
Votes for and executes the proposal identified by `proposal_id`. Asserts
that the ProposalStatus is Executed.
Votes for and executes the proposal identified by ` proposal_id ` . Asserts that the ProposalStatus is Executed .
pub async fn vote_execute_proposal_assert_executed(
    governance_canister: &Canister<'_>,
    proposal_id: ProposalId,
) {
    // Wait for the proposal to be accepted and executed.
    assert_eq!(
        vote_and_execute_proposal(governance_canister, proposal_id)
            .await
            .status(),
        ProposalStatus::Executed
    );
}
pub async fn vote_execute_proposal_assert_executed ( governance_canister : & Canister < ' _ > , proposal_id : ProposalId , ) { // Wait for the proposal to be accepted and executed. assert_eq ! ( vote_and_execute_proposal ( governance_canister proposal_id ) await status ( ) ProposalStatus Executed ) ; }
Votes for and executes the proposal identified by `proposal_id`.
Votes for and executes the proposal identified by ` proposal_id ` .
governance_canister
&Canister<'_>
proposal_id
ProposalId
governance_canister
&Canister<'_>
proposal_id
ProposalId