mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
fix(python/trezorctl): fix operator precedence issue for ethereum sign-tx command
This commit is contained in:
parent
a924bd4dc6
commit
10ce81b5d1
1
python/.changelog.d/1867.fixed
Normal file
1
python/.changelog.d/1867.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
fix operator precedence issue for ethereum sign-tx command
|
@ -268,8 +268,7 @@ def sign_tx(
|
|||||||
(not is_eip1559 and gas_price is None)
|
(not is_eip1559 and gas_price is None)
|
||||||
or any(x is None for x in (gas_limit, nonce))
|
or any(x is None for x in (gas_limit, nonce))
|
||||||
or publish
|
or publish
|
||||||
and not w3.isConnected()
|
) and not w3.isConnected():
|
||||||
):
|
|
||||||
click.echo("Failed to connect to Ethereum node.")
|
click.echo("Failed to connect to Ethereum node.")
|
||||||
click.echo(
|
click.echo(
|
||||||
"If you want to sign offline, make sure you provide --gas-price, "
|
"If you want to sign offline, make sure you provide --gas-price, "
|
||||||
|
Loading…
Reference in New Issue
Block a user