/// Send an update-call to the governance-canister on the NNS asking for Subnet
/// `subnet_id` to be updated to replica with version id `replica_version_id`.
Send an update-call to the governance-canister on the NNS asking for Subnet
`subnet_id` to be updated to replica with version id `replica_version_id`.
Send an update - call to the governance - canister on the NNS asking for Subnet ` subnet_id ` to be updated to replica with version id ` replica_version_id ` .
async fn update_subnet_replica_version(
    nns_api: &'_ Runtime,
    subnet_id: SubnetId,
    replica_version_id: String,
) -> Result<(), String> {
    let governance_canister = get_governance_canister(nns_api);
    let proposal_payload = UpdateSubnetReplicaVersionPayload {
        subnet_id: subnet_id.get(),
        replica_version_id,
    };
    let proposal_id = submit_external_proposal_with_test_id(
        &governance_canister,
        NnsFunction::UpdateSubnetReplicaVersion,
        proposal_payload,
    )
    .await;
    vote_execute_proposal_assert_executed(&governance_canister, proposal_id).await;
    Ok(())
}
async fn update_subnet_replica_version ( nns_api : & ' _ Runtime , subnet_id : SubnetId , replica_version_id : String , ) -> Result < ( ) , String > { let governance_canister = get_governance_canister ( nns_api ) ; let proposal_payload = UpdateSubnetReplicaVersionPayload { subnet_id : subnet_id . get ( ) , replica_version_id , } ; let proposal_id = submit_external_proposal_with_test_id ( & governance_canister , NnsFunction :: UpdateSubnetReplicaVersion , proposal_payload , ) . await ; vote_execute_proposal_assert_executed ( & governance_canister , proposal_id ) . await ; Ok ( ( ) ) }
Send an update-call to the governance-canister on the NNS asking for Subnet
`subnet_id` to be updated to replica with version id `replica_version_id`.
Send an update - call to the governance - canister on the NNS asking for Subnet ` subnet_id ` to be updated to replica with version id ` replica_version_id ` .
nns_api
&'_ Runtime
subnet_id
SubnetId
replica_version_id
String