/// Votes a root proposal to upgrade the governance canister.
Votes a root proposal to upgrade the governance canister.
Votes a root proposal to upgrade the governance canister .
async fn vote_on_root_proposal_to_upgrade_governance_canister(
    cmd: VoteOnRootProposalToUpgradeGovernanceCanisterCmd,
    nns_url: Url,
    sender: Sender,
) {
    let sender = get_test_sender_if_set(sender, cmd.test_user_voter);
    let canister_client = RootCanisterClient(make_canister_client(
        nns_url,
        ROOT_CANISTER_ID,
        sender,
        None,
    ));
    let result = canister_client
        .vote_on_root_proposal_to_upgrade_governance_canister(cmd)
        .await;
    match result {
        Ok(()) => println!("Ballot for root proposal cast."),
        Err(error) => println!("Error submitting root propoposal ballot: {}", error),
    }
}
async fn vote_on_root_proposal_to_upgrade_governance_canister ( cmd : VoteOnRootProposalToUpgradeGovernanceCanisterCmd , nns_url : Url , sender : Sender , ) { let sender = get_test_sender_if_set ( sender , cmd . test_user_voter ) ; let canister_client = RootCanisterClient ( make_canister_client ( nns_url , ROOT_CANISTER_ID , sender , None , ) ) ; let result = canister_client . vote_on_root_proposal_to_upgrade_governance_canister ( cmd ) . await ; match result { Ok ( ( ) ) => println ! ( " " ) , Err ( error ) => println ! ( " " error ) , } }
Votes a root proposal to upgrade the governance canister.
Votes a root proposal to upgrade the governance canister .
cmd
VoteOnRootProposalToUpgradeGovernanceCanisterCmd
nns_url
Url
sender
Sender