clean up binary_formats

This commit is contained in:
swrup 2025-10-17 20:05:48 +02:00
parent c992e1d402
commit 207cf58446
3 changed files with 223 additions and 260 deletions

View file

@ -78,7 +78,7 @@ let () =
let () =
let open Binary_formats.WithdrawConfirmationPS in
let str64 = String.init 64 (fun i -> Char.unsafe_chr (i + 1)) in
let dummy_t = { h_planchets= { v= { v= str64 } }; noreveal_index= 0_l } in
let dummy_t = { h_planchets= { hash= str64 }; noreveal_index= 0_l } in
let size = Bin.size_of_value bin dummy_t |> Option.get in
assert (size = 76);