Skip to content

Commit

Permalink
fixes after update to new noir
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 11, 2024
1 parent 3ea075e commit bd1de81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/utils/bytes.nr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn fields_to_bytes<let N: u32, let M: u32>(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();
Expand Down

0 comments on commit bd1de81

Please sign in to comment.