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:
parent
19bbe707f7
commit
f75f315dbc
@ -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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user