diff --git a/crates/nargo_cli/src/cli/check_cmd.rs b/crates/nargo_cli/src/cli/check_cmd.rs index 56f54347bd5..434d1d1a86e 100644 --- a/crates/nargo_cli/src/cli/check_cmd.rs +++ b/crates/nargo_cli/src/cli/check_cmd.rs @@ -66,12 +66,12 @@ fn check_from_path>(p: P, compile_options: &CompileOptions) -> Re fn build_placeholder_input_map( parameters: Vec, return_type: Option, -) -> BTreeMap { - let default_value = |typ: AbiType| { +) -> BTreeMap { + let default_value = |typ: AbiType| -> toml::Value { if matches!(typ, AbiType::Array { .. }) { - "[]" + toml::Value::Array(Vec::new()) } else { - "" + toml::Value::String("".to_owned()) } };