/// Adds the given `ReplicaVersionRecord` to the registry and returns the
/// registry version after the update.
Adds the given `ReplicaVersionRecord` to the registry and returns the
registry version after the update.
Adds the given ` ReplicaVersionRecord ` to the registry and returns the registry version after the update .
async fn add_replica_version(nns_api: &'_ Runtime, version: ReplicaVersion) -> Result<(), String> {
    let governance_canister = get_governance_canister(nns_api);
    let proposal_payload = BlessReplicaVersionPayload {
        replica_version_id: version.to_string(),
        release_package_url: "".to_string(),
        release_package_sha256_hex: "".to_string(),
    };
    let proposal_id: ProposalId = submit_external_proposal_with_test_id(
        &governance_canister,
        NnsFunction::BlessReplicaVersion,
        proposal_payload,
    )
    .await;
    vote_execute_proposal_assert_executed(&governance_canister, proposal_id).await;
    Ok(())
}
async fn add_replica_version ( nns_api : & ' _ Runtime , version : ReplicaVersion ) -> Result < ( ) , String > { let governance_canister = get_governance_canister ( nns_api ) ; let proposal_payload = BlessReplicaVersionPayload { replica_version_id : version . to_string ( ) , release_package_url : " " . to_string ( ) , release_package_sha256_hex : " " . to_string ( ) , } ; let proposal_id : ProposalId = submit_external_proposal_with_test_id ( & governance_canister , NnsFunction :: BlessReplicaVersion , proposal_payload , ) . await ; vote_execute_proposal_assert_executed ( & governance_canister , proposal_id ) . await ; Ok ( ( ) ) }
Adds the given `ReplicaVersionRecord` to the registry and returns the
registry version after the update.
Adds the given ` ReplicaVersionRecord ` to the registry and returns the registry version after the update .
nns_api
&'_ Runtime
version
ReplicaVersion