This commit is contained in:
parent
4490485fc2
commit
d1587c42df
5 changed files with 58 additions and 2 deletions
|
|
@ -74,9 +74,10 @@ let () =
|
|||
|
||||
let () =
|
||||
let open Binary_formats.WithdrawConfirmationPS in
|
||||
let str64 = String.make 64 '0' 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 size' = Bin.size_of_value bin dummy_t |> Option.get in
|
||||
assert (size = size');
|
||||
assert (size = 76);
|
||||
()
|
||||
let raw_str = Bin.to_string bin dummy_t in
|
||||
Printf.printf "%s" raw_str; ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue