Improve display of Ledger apps names/versions

This commit is contained in:
Sebastien Mondet 2018-09-04 22:15:45 -04:00 committed by Pierre Boutillier
parent 18bbfd126b
commit b329b604a7
No known key found for this signature in database
GPG Key ID: C2F73508B56A193C

View File

@ -9,8 +9,8 @@ open Ledgerwallet
module Version = struct
type app_class = Tezos | TezBake
let pp_app_class ppf = function
| Tezos -> Format.pp_print_string ppf "Tezos"
| TezBake -> Format.pp_print_string ppf "TezBake"
| Tezos -> Format.pp_print_string ppf "Tezos Wallet"
| TezBake -> Format.pp_print_string ppf "Tezos Baker"
let class_of_int = function
| 0 -> Tezos
@ -25,7 +25,7 @@ module Version = struct
}
let pp ppf { app_class ; major ; minor ; patch } =
Format.fprintf ppf "%a.%d.%d.%d"
Format.fprintf ppf "%a %d.%d.%d"
pp_app_class app_class major minor patch
let create ~app_class ~major ~minor ~patch = {