RPC: Use bytes for source files encoding in protocol updates

This commit is contained in:
Grégoire Henry 2018-04-16 00:44:23 +02:00
parent bc9179094f
commit d3f4424c75

View File

@ -34,8 +34,8 @@ let component_encoding =
{ name ; interface ; implementation }) { name ; interface ; implementation })
(obj3 (obj3
(req "name" string) (req "name" string)
(opt "interface" string) (opt "interface" (conv MBytes.of_string MBytes.to_string bytes))
(req "implementation" string)) (req "implementation" (conv MBytes.of_string MBytes.to_string bytes)))
let env_version_encoding = let env_version_encoding =
let open Data_encoding in let open Data_encoding in