From 4431d07d88a21d5e1afd55eab14c7782eafa6161 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Fri, 20 Oct 2023 13:26:24 +0100 Subject: [PATCH] refactor: change public parameter name Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> --- compiler/wasm/src/compile.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/wasm/src/compile.rs b/compiler/wasm/src/compile.rs index d031c298867..8f9241963e0 100644 --- a/compiler/wasm/src/compile.rs +++ b/compiler/wasm/src/compile.rs @@ -46,12 +46,12 @@ struct DependencyGraph { pub fn compile( entry_point: String, contracts: Option, - js_dependency_graph: Option, + dependency_graph: Option, ) -> Result { console_error_panic_hook::set_once(); - let dependency_graph: DependencyGraph = if let Some(js_dependency_graph) = js_dependency_graph { - ::into_serde(&JsValue::from(js_dependency_graph)) + let dependency_graph: DependencyGraph = if let Some(dependency_graph) = dependency_graph { + ::into_serde(&JsValue::from(dependency_graph)) .map_err(|err| err.to_string())? } else { DependencyGraph { root_dependencies: vec![], library_dependencies: HashMap::new() }