1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-15 09:50:57 +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):
if None in (
msg.fee,
msg.sequence,
msg.payment,
) or msg.payment and None in (
msg.payment.amount,
msg.payment.destination,
if None in (msg.fee, msg.sequence, msg.payment) or (
msg.payment and None in (msg.payment.amount, msg.payment.destination)
):
raise ProcessError(
"Some of the required fields are missing (fee, sequence, payment.amount, payment.destination)"