Skip to content

Commit e58fe69

Browse files
committed
16 bytes for u128
1 parent 7653f10 commit e58fe69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/circuits/lib/src/rlp/types.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl RlpFragment {
105105
value: u128,
106106
) {
107107
let val: Field = value as Field;
108-
self.assert_eq_bounded_vec(field_name, rlp, byte_value(val.to_be_bytes::<20>()));
108+
self.assert_eq_bounded_vec(field_name, rlp, byte_value(val.to_be_bytes::<16>()));
109109
}
110110

111111
pub(crate) fn assert_eq_address<let FIELD_NAME_LEN: u32, let MAX_RLP_LEN: u32>(

0 commit comments

Comments
 (0)