From 38562335bb8e9063d354eb2fa201bcf3053a3d98 Mon Sep 17 00:00:00 2001 From: Severin Siffert Date: Tue, 6 Feb 2024 17:58:15 +0100 Subject: [PATCH] ledger -> cmc --- extensions/nns/src/install_nns.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/nns/src/install_nns.rs b/extensions/nns/src/install_nns.rs index ff5bf0aa..7a9a2827 100644 --- a/extensions/nns/src/install_nns.rs +++ b/extensions/nns/src/install_nns.rs @@ -498,9 +498,9 @@ pub fn set_cycles_ledger_canister_id_in_cmc( } let wasm_path = nns_wasm_dir(dfx_cache_path); - let ledger_wasm_path = wasm_path.join(NNS_CYCLES_MINTING.wasm_name); - let ledger_wasm_bytes = dfx_core::fs::read(&ledger_wasm_path)?; - let wasm_hash = Sha256::digest(ledger_wasm_bytes); + let cmc_wasm_path = wasm_path.join(NNS_CYCLES_MINTING.wasm_name); + let cmc_wasm_bytes = dfx_core::fs::read(&cmc_wasm_path)?; + let wasm_hash = Sha256::digest(cmc_wasm_bytes); let mut upgrade_arg_file = tempfile::NamedTempFile::new()?; upgrade_arg_file .write_all( @@ -513,7 +513,7 @@ pub fn set_cycles_ledger_canister_id_in_cmc( ) .context("Failed to write to tempfile.")?; - let ledger_wasm_path_str = ledger_wasm_path.to_string_lossy(); + let cmc_wasm_path_str = cmc_wasm_path.to_string_lossy(); let wasm_hash_str = hex::encode(wasm_hash); let upgrade_arg_file_str = upgrade_arg_file.path().to_string_lossy(); let args = vec![ @@ -530,7 +530,7 @@ pub fn set_cycles_ledger_canister_id_in_cmc( "--canister-id", NNS_CYCLES_MINTING.canister_id, "--wasm-module-path", - &ledger_wasm_path_str, + &cmc_wasm_path_str, "--wasm-module-sha256", &wasm_hash_str, "--arg",