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