From da3b2c374901097c545cda276cad3ebf687e4bbd Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Mon, 17 Oct 2022 16:58:18 -0700 Subject: [PATCH] Set the type correctly for click (#13644) --- chia/cmds/wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chia/cmds/wallet.py b/chia/cmds/wallet.py index a34afa1bf4c4..038a690c6721 100644 --- a/chia/cmds/wallet.py +++ b/chia/cmds/wallet.py @@ -74,12 +74,14 @@ def get_transaction_cmd(wallet_rpc_port: Optional[int], fingerprint: int, id: in "--sort-by-height", "sort_key", flag_value=SortKey.CONFIRMED_AT_HEIGHT, + type=SortKey, help="Sort transactions by height", ) @click.option( "--sort-by-relevance", "sort_key", flag_value=SortKey.RELEVANCE, + type=SortKey, default=True, help="Sort transactions by {confirmed, height, time}", )