pub async fn install_governance_canister(canister: &mut Canister<'_>, init_payload: Governance) {
    let mut serialized = Vec::new();
    init_payload
        .encode(&mut serialized)
        .expect("Couldn't serialize init payload.");
    install_rust_canister(
        canister,
        "nns/governance",
        "governance-canister",
        &[],
        Some(serialized),
    )
    .await;
}
/// Compiles the governance canister, builds it's initial payload and installs
/// it
Compiles the governance canister, builds it's initial payload and installs
it
Compiles the governance canister builds it ' s initial payload and installs it
pub async fn install_governance_canister(canister: &mut Canister<'_>, init_payload: Governance) {
    let mut serialized = Vec::new();
    init_payload
        .encode(&mut serialized)
        .expect("Couldn't serialize init payload.");
    install_rust_canister(
        canister,
        "nns/governance",
        "governance-canister",
        &[],
        Some(serialized),
    )
    .await;
}
pub async fn install_governance_canister ( canister : & mut Canister < ' _ > , init_payload : Governance ) { let mut serialized = Vec :: new ( ) ; init_payload . encode ( & mut serialized ) . expect ( " " ) ; install_rust_canister ( canister , " " , " " , & [ ] , Some ( serialized ) , ) . await ; }
Compiles the governance canister, builds it's initial payload and installs
it
Compiles the governance canister builds it ' s initial payload and installs it
canister
&mut Canister<'_>
init_payload
Governance
canister
&mut Canister<'_>
init_payload
Governance