diff --git a/noir-projects/aztec-nr/aztec/src/utils/bytes.nr b/noir-projects/aztec-nr/aztec/src/utils/bytes.nr index 1fe15a67410..4d2ca15afd8 100644 --- a/noir-projects/aztec-nr/aztec/src/utils/bytes.nr +++ b/noir-projects/aztec-nr/aztec/src/utils/bytes.nr @@ -30,7 +30,7 @@ pub fn fields_to_bytes(input: [Field; M]) -> [u8; N] { let field = input[field_index]; // We expect that the field contains at most 31 bytes of information. - field.assert_max_bit_size(248); + field.assert_max_bit_size::<248>(); // Now we can safely convert the field to 31 bytes. let src: [u8; 31] = field.to_be_bytes();