From 2dd6a107a7fa5a0c806ca02d5b1add7322efbfe0 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 17 Mar 2023 12:36:54 +0100 Subject: [PATCH] fix(python/trezorctl): fix colliding option shortcut in ethereum sign-tx fixes #2535 --- python/.changelog.d/2535.fixed | 1 + python/src/trezorlib/cli/ethereum.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 python/.changelog.d/2535.fixed diff --git a/python/.changelog.d/2535.fixed b/python/.changelog.d/2535.fixed new file mode 100644 index 00000000000..55d40bfd86a --- /dev/null +++ b/python/.changelog.d/2535.fixed @@ -0,0 +1 @@ +`trezorctl ethereum sign-tx`: renamed `--gas-limit` shortcut to `-G` to avoid collision with `-t/--token` diff --git a/python/src/trezorlib/cli/ethereum.py b/python/src/trezorlib/cli/ethereum.py index 8f3b2d4548a..f84087b4185 100644 --- a/python/src/trezorlib/cli/ethereum.py +++ b/python/src/trezorlib/cli/ethereum.py @@ -298,7 +298,7 @@ def get_public_node(client: "TrezorClient", address: str, show_display: bool) -> "-g", "--gas-limit", type=int, help="Gas limit (required for offline signing)" ) @click.option( - "-t", + "-G", "--gas-price", help="Gas price (required for offline signing)", callback=_amount_to_int,