From e1e85f6c5f69a936f25b78eb801c90d9904aa495 Mon Sep 17 00:00:00 2001 From: Alessandro Coglio Date: Mon, 25 Sep 2023 23:25:52 -0700 Subject: [PATCH] [Aleo ins parser] Fix array type anomaly. Fixes #2016. --- console/program/src/data_types/array_type/parse.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/console/program/src/data_types/array_type/parse.rs b/console/program/src/data_types/array_type/parse.rs index e7f59af7f6..4f6fdc75c0 100644 --- a/console/program/src/data_types/array_type/parse.rs +++ b/console/program/src/data_types/array_type/parse.rs @@ -42,8 +42,6 @@ impl Parser for ArrayType { Ok((string, length)) } - // Parse the whitespace and comments from the string. - let (string, _) = Sanitizer::parse(string)?; // Parse the opening brackets and validate the number of dimensions. let (string, dimensions) = map_res(many0_count(pair(tag("["), Sanitizer::parse_whitespaces)), |dimensions| { if dimensions.is_zero() {