Michelson: parse bytes as a comparable_ty (thanks @catsigma)

This commit is contained in:
Benjamin Canou 2018-07-17 18:23:16 +02:00 committed by Grégoire Henry
parent 5a60dff917
commit bd709a44ba

View File

@ -1002,6 +1002,9 @@ let rec parse_comparable_ty
| Prim (loc, T_string, [], annot) ->
parse_type_annot loc annot >|? fun tname ->
Ex_comparable_ty ( String_key tname ), ctxt
| Prim (loc, T_bytes, [], annot) ->
parse_type_annot loc annot >|? fun tname ->
Ex_comparable_ty ( Bytes_key tname ), ctxt
| Prim (loc, T_mutez, [], annot) ->
parse_type_annot loc annot >|? fun tname ->
Ex_comparable_ty ( Mutez_key tname ), ctxt