From d3f4424c75bd984353e5310edfd0263c20825c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Mon, 16 Apr 2018 00:44:23 +0200 Subject: [PATCH] RPC: Use `bytes` for source files encoding in protocol updates --- src/lib_base/protocol.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_base/protocol.ml b/src/lib_base/protocol.ml index f174a059b..879b43bbd 100644 --- a/src/lib_base/protocol.ml +++ b/src/lib_base/protocol.ml @@ -34,8 +34,8 @@ let component_encoding = { name ; interface ; implementation }) (obj3 (req "name" string) - (opt "interface" string) - (req "implementation" string)) + (opt "interface" (conv MBytes.of_string MBytes.to_string bytes)) + (req "implementation" (conv MBytes.of_string MBytes.to_string bytes))) let env_version_encoding = let open Data_encoding in