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() }