Improve display of Ledger apps names/versions
This commit is contained in:
parent
18bbfd126b
commit
b329b604a7
@ -9,8 +9,8 @@ open Ledgerwallet
|
|||||||
module Version = struct
|
module Version = struct
|
||||||
type app_class = Tezos | TezBake
|
type app_class = Tezos | TezBake
|
||||||
let pp_app_class ppf = function
|
let pp_app_class ppf = function
|
||||||
| Tezos -> Format.pp_print_string ppf "Tezos"
|
| Tezos -> Format.pp_print_string ppf "Tezos Wallet"
|
||||||
| TezBake -> Format.pp_print_string ppf "TezBake"
|
| TezBake -> Format.pp_print_string ppf "Tezos Baker"
|
||||||
|
|
||||||
let class_of_int = function
|
let class_of_int = function
|
||||||
| 0 -> Tezos
|
| 0 -> Tezos
|
||||||
@ -25,7 +25,7 @@ module Version = struct
|
|||||||
}
|
}
|
||||||
|
|
||||||
let pp ppf { app_class ; major ; minor ; patch } =
|
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
|
pp_app_class app_class major minor patch
|
||||||
|
|
||||||
let create ~app_class ~major ~minor ~patch = {
|
let create ~app_class ~major ~minor ~patch = {
|
||||||
|
Loading…
Reference in New Issue
Block a user