/// Wraps the given proposal_payload into a proposal; sends it to the governance
/// canister; returns the proposal id.
Wraps the given proposal_payload into a proposal; sends it to the governance
canister; returns the proposal id.
Wraps the given proposal_payload into a proposal ; sends it to the governance canister ; returns the proposal id .
pub async fn submit_external_update_proposal_binary(
    governance_canister: &Canister<'_>,
    proposer: Sender,
    proposer_neuron_id: NeuronId,
    update_type: NnsFunction,
    proposal_payload: Vec<u8>,
    title: String,
    summary: String,
) -> ProposalId {
    let response: ManageNeuronResponse = submit_external_update_proposal_binary_with_response(
        governance_canister,
        proposer,
        proposer_neuron_id,
        update_type,
        proposal_payload,
        title,
        summary,
    )
    .await;
    match response.expect("Error making proposal").command.unwrap() {
        CommandResponse::MakeProposal(resp) => ProposalId::from(resp.proposal_id.unwrap()),
        _ => panic!("Invalid response"),
    }
}
pub async fn submit_external_update_proposal_binary ( governance_canister : & Canister < ' _ > , proposer : Sender , proposer_neuron_id : NeuronId , update_type : NnsFunction , proposal_payload : Vec < u8 > , title : String , summary : String , ) -> ProposalId { let response : ManageNeuronResponse = submit_external_update_proposal_binary_with_response ( governance_canister , proposer , proposer_neuron_id , update_type , proposal_payload , title , summary , ) . await ; match response . expect ( " " ) . command . unwrap ( ) { CommandResponse :: MakeProposal ( resp ) => ProposalId :: from ( resp . proposal_id . unwrap ( ) ) , _ => panic ! ( " " ) , } }
Wraps the given proposal_payload into a proposal; sends it to the governance
canister; returns the proposal id.
Wraps the given proposal_payload into a proposal ; sends it to the governance canister ; returns the proposal id .
governance_canister
&Canister<'_>
proposer
Sender
proposer_neuron_id
NeuronId
update_type
NnsFunction
proposal_payload
Vec<u8>
title
String
summary
String