Client/Endorser: use 'Data_encoding.assoc Raw_level.encoding'

This commit is contained in:
Mathias 2018-05-24 10:53:26 +02:00 committed by Grégoire Henry
parent fcd29a36f3
commit a5bb58e146

View File

@ -30,11 +30,7 @@ end = struct
type t = (string * Raw_level.t) list type t = (string * Raw_level.t) list
let encoding : t Data_encoding.t = let encoding : t Data_encoding.t =
Data_encoding.( Data_encoding.assoc Raw_level.encoding
list (obj2
(req "delegate" string)
(req "last_level" Raw_level.encoding)
))
let name = let name =
"endorsements" "endorsements"