From 92c037d89eb8b50083489c739d88cedd619df184 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 000000000..55d40bfd8 --- /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 13b36a8dd..8a0e1ba2e 100644 --- a/python/src/trezorlib/cli/ethereum.py +++ b/python/src/trezorlib/cli/ethereum.py @@ -309,7 +309,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,