diff --git a/crates/noirc_abi/src/input_parser/toml.rs b/crates/noirc_abi/src/input_parser/toml.rs index 8a8a8d867ac..a8fef9e0f1a 100644 --- a/crates/noirc_abi/src/input_parser/toml.rs +++ b/crates/noirc_abi/src/input_parser/toml.rs @@ -93,10 +93,13 @@ impl InputValue { let input_value = match value { TomlTypes::String(string) => match param_type { AbiType::String { .. } => InputValue::String(string), - AbiType::Field | AbiType::Integer { .. } => { + AbiType::Field | AbiType::Integer { .. } | AbiType::Boolean => { InputValue::Field(parse_str_to_field(&string)?) } - _ => return Err(InputParserError::AbiTypeMismatch(param_type.clone())), + + AbiType::Array { .. } | AbiType::Struct { .. } => { + return Err(InputParserError::AbiTypeMismatch(param_type.clone())) + } }, TomlTypes::Integer(integer) => { let new_value = FieldElement::from(i128::from(integer));