Proto/Michelson: readable unparsing of chain ids
This fixes a small bug in Michelson unparsing (conversion from the GADT
to Script.expr
).
The unparse_data
function has two modes of operation: Readable
and
Optimized
. In most cases (addresses, contracts, signatures, keys,
and key hashes) the Readable
mode produces a base58 string and
Optimized
produces a byte sequence. For chain_id the mode was
ignored and the behaviour was the one expected for Optimized
; this
MR adds the missing Readable
case.
Note that parse_data
was already able to parse both optimized and
readable chain ids.
Edited by vbot