From 259c97bc9cf5d20b29266e04170db86a20d63dd7 Mon Sep 17 00:00:00 2001 From: Marco Stronati Date: Sun, 24 Jun 2018 01:05:45 +0200 Subject: [PATCH] Alpha: change encoding of Tez from int64 to Zarith n --- src/proto_alpha/lib_protocol/src/qty_repr.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_alpha/lib_protocol/src/qty_repr.ml b/src/proto_alpha/lib_protocol/src/qty_repr.ml index acf2bc8cc..6d7f23b2e 100644 --- a/src/proto_alpha/lib_protocol/src/qty_repr.ml +++ b/src/proto_alpha/lib_protocol/src/qty_repr.ml @@ -223,7 +223,7 @@ module Make (T: QTY) : S = struct let encoding = let open Data_encoding in - (conv to_int64 (Json.wrap_error of_mutez_exn) int64) + (check_size 10 (conv Z.of_int64 (Json.wrap_error Z.to_int64) n)) let () = let open Data_encoding in