Michelson: prepend 0x05 to PACKed data
This commit is contained in:
parent
710998caf4
commit
7b5e029537
@ -2872,6 +2872,7 @@ let pack_data ctxt typ data =
|
|||||||
unparse_data ctxt Optimized typ data >>=? fun (data, ctxt) ->
|
unparse_data ctxt Optimized typ data >>=? fun (data, ctxt) ->
|
||||||
let unparsed = strip_annotations @@ data in
|
let unparsed = strip_annotations @@ data in
|
||||||
let bytes = Data_encoding.Binary.to_bytes_exn expr_encoding (Micheline.strip_locations unparsed) 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)
|
return (bytes, ctxt)
|
||||||
|
|
||||||
let hash_data ctxt typ data =
|
let hash_data ctxt typ data =
|
||||||
|
Loading…
Reference in New Issue
Block a user