move none check
This commit is contained in:
parent
23635892a6
commit
c090624f4c
@ -231,7 +231,10 @@ def _get_taker_token_in_amount(
|
|||||||
child_transfers: List[Transfer],
|
child_transfers: List[Transfer],
|
||||||
) -> int:
|
) -> int:
|
||||||
|
|
||||||
if len(child_transfers) != 2 and trace.error == None:
|
if trace.error is not None:
|
||||||
|
return 0
|
||||||
|
|
||||||
|
if len(child_transfers) != 2:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"A settled order should consist of 2 child transfers, not {len(child_transfers)}."
|
f"A settled order should consist of 2 child transfers, not {len(child_transfers)}."
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user