diff --git a/python/.changelog.d/1867.fixed b/python/.changelog.d/1867.fixed new file mode 100644 index 000000000..721be4e30 --- /dev/null +++ b/python/.changelog.d/1867.fixed @@ -0,0 +1 @@ +fix operator precedence issue for ethereum sign-tx command diff --git a/python/src/trezorlib/cli/ethereum.py b/python/src/trezorlib/cli/ethereum.py index 1a1e4ed74..54e77de25 100644 --- a/python/src/trezorlib/cli/ethereum.py +++ b/python/src/trezorlib/cli/ethereum.py @@ -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, "