1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

fix(python/trezorctl): fix operator precedence issue for ethereum sign-tx command

This commit is contained in:
Eduard Klementiev 2021-10-25 15:34:19 +03:00 committed by matejcik
parent a924bd4dc6
commit 10ce81b5d1
2 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1 @@
fix operator precedence issue for ethereum sign-tx command

View File

@ -268,8 +268,7 @@ def sign_tx(
(not is_eip1559 and gas_price is None)
or any(x is None for x in (gas_limit, nonce))
or publish
and not w3.isConnected()
):
) and not w3.isConnected():
click.echo("Failed to connect to Ethereum node.")
click.echo(
"If you want to sign offline, make sure you provide --gas-price, "