Michelson: prepend 0x05 to PACKed data

This commit is contained in:
Benjamin Canou 2018-06-15 00:46:50 +02:00
parent 710998caf4
commit 7b5e029537

View File

@ -2872,6 +2872,7 @@ let pack_data ctxt typ data =
unparse_data ctxt Optimized typ data >>=? fun (data, ctxt) ->
let unparsed = strip_annotations @@ data in
let bytes = Data_encoding.Binary.to_bytes_exn expr_encoding (Micheline.strip_locations unparsed) in
let bytes = MBytes.concat "" [ MBytes.of_string "\005" ; bytes ] in
return (bytes, ctxt)
let hash_data ctxt typ data =