From 5ba54a40006054a802d7ab82b0f66b1c63fcc520 Mon Sep 17 00:00:00 2001 From: Tom French Date: Mon, 3 Apr 2023 15:56:52 +0100 Subject: [PATCH] feat(nargo): remove misleading quotes in generated `Prover.toml` --- 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()) } };