Client/Endorser: use 'Data_encoding.assoc Raw_level.encoding'
This commit is contained in:
parent
fcd29a36f3
commit
a5bb58e146
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user