1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-28 16:21:03 +00:00

ripple: style

This commit is contained in:
Tomas Susanka 2018-09-05 10:31:09 +02:00
parent 19bbe707f7
commit f75f315dbc

View File

@ -65,13 +65,8 @@ def set_canonical_flag(msg: RippleSignTx):
def validate(msg: RippleSignTx): def validate(msg: RippleSignTx):
if None in ( if None in (msg.fee, msg.sequence, msg.payment) or (
msg.fee, msg.payment and None in (msg.payment.amount, msg.payment.destination)
msg.sequence,
msg.payment,
) or msg.payment and None in (
msg.payment.amount,
msg.payment.destination,
): ):
raise ProcessError( raise ProcessError(
"Some of the required fields are missing (fee, sequence, payment.amount, payment.destination)" "Some of the required fields are missing (fee, sequence, payment.amount, payment.destination)"