From a5bb58e14696ffb80346bcdfd0979e0e1bd40038 Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 24 May 2018 10:53:26 +0200 Subject: [PATCH] Client/Endorser: use 'Data_encoding.assoc Raw_level.encoding' --- src/proto_alpha/lib_baking/client_baking_endorsement.ml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/proto_alpha/lib_baking/client_baking_endorsement.ml b/src/proto_alpha/lib_baking/client_baking_endorsement.ml index f8e530dfc..8691327ae 100644 --- a/src/proto_alpha/lib_baking/client_baking_endorsement.ml +++ b/src/proto_alpha/lib_baking/client_baking_endorsement.ml @@ -30,11 +30,7 @@ end = struct type t = (string * Raw_level.t) list let encoding : t Data_encoding.t = - Data_encoding.( - list (obj2 - (req "delegate" string) - (req "last_level" Raw_level.encoding) - )) + Data_encoding.assoc Raw_level.encoding let name = "endorsements"