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"