From 57c817fafe494c3d6a9cd56c7e266dad754b5c5b Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:30:25 +0100 Subject: [PATCH] feat(nargo): remove misleading quotes in generated `Prover.toml` (#1087) --- crates/nargo_cli/src/cli/check_cmd.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()) } };