diff --git a/sdk/package-lock.json b/sdk/package-lock.json index 26a5d23a6..059fac672 100644 --- a/sdk/package-lock.json +++ b/sdk/package-lock.json @@ -51,7 +51,7 @@ "license": "GPL-3.0" }, "../wasm/pkg-parallel": { - "name": "@aleohq/wasm", + "name": "aleo-wasm", "version": "0.5.9", "license": "GPL-3.0" }, diff --git a/wasm/src/programs/manager/join.rs b/wasm/src/programs/manager/join.rs index 666fa692e..bfe77e24f 100644 --- a/wasm/src/programs/manager/join.rs +++ b/wasm/src/programs/manager/join.rs @@ -84,7 +84,11 @@ impl ProgramManager { let mut new_process; let process = get_process!(self, cache, new_process); let stack = process.get_stack("credits.aleo").map_err(|e| e.to_string())?; - let fee_identifier = IdentifierNative::from_str("fee").map_err(|e| e.to_string())?; + let fee_identifier = if fee_record.is_some() { + IdentifierNative::from_str("fee_private").map_err(|e| e.to_string())? + } else { + IdentifierNative::from_str("fee_public").map_err(|e| e.to_string())? + }; if !stack.contains_proving_key(&fee_identifier) && fee_proving_key.is_some() && fee_verifying_key.is_some() { let fee_proving_key = fee_proving_key.clone().unwrap(); let fee_verifying_key = fee_verifying_key.clone().unwrap(); diff --git a/wasm/src/programs/manager/transfer.rs b/wasm/src/programs/manager/transfer.rs index de627deb4..10e2f61c9 100644 --- a/wasm/src/programs/manager/transfer.rs +++ b/wasm/src/programs/manager/transfer.rs @@ -129,7 +129,11 @@ impl ProgramManager { let mut new_process; let process = get_process!(self, cache, new_process); - let fee_identifier = IdentifierNative::from_str("fee").map_err(|e| e.to_string())?; + let fee_identifier = if fee_record.is_some() { + IdentifierNative::from_str("fee_private").map_err(|e| e.to_string())? + } else { + IdentifierNative::from_str("fee_public").map_err(|e| e.to_string())? + }; let stack = process.get_stack("credits.aleo").map_err(|e| e.to_string())?; if !stack.contains_proving_key(&fee_identifier) && fee_proving_key.is_some() && fee_verifying_key.is_some() { let fee_proving_key = fee_proving_key.clone().unwrap(); diff --git a/website/src/tabs/develop/Deploy.jsx b/website/src/tabs/develop/Deploy.jsx index 4add4121f..b2ba8588c 100644 --- a/website/src/tabs/develop/Deploy.jsx +++ b/website/src/tabs/develop/Deploy.jsx @@ -283,7 +283,7 @@ export const Deploy = () => { />