From fdc5bdec9fdc9b69f511697b33cb5714914b8d08 Mon Sep 17 00:00:00 2001 From: LHerskind Date: Wed, 3 Jul 2024 16:24:42 +0000 Subject: [PATCH] chore: update upper bound check --- noir-projects/aztec-nr/aztec/src/hash.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir-projects/aztec-nr/aztec/src/hash.nr b/noir-projects/aztec-nr/aztec/src/hash.nr index 4e6fc6cb3c56..cd17a5848658 100644 --- a/noir-projects/aztec-nr/aztec/src/hash.nr +++ b/noir-projects/aztec-nr/aztec/src/hash.nr @@ -112,7 +112,7 @@ pub fn hash_args(args: [Field]) -> Field { if args.len() == 0 { 0 } else { - assert(args.len() < MAX_ARGS_LENGTH); + assert(args.len() <= MAX_ARGS_LENGTH, "Args length exceeds maximum"); let mut chunks_hashes = [0; ARGS_HASH_CHUNK_COUNT]; let mut current_chunk_values = [0; ARGS_HASH_CHUNK_LENGTH];