File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,15 @@ def _get_errors(self: Self) -> Dict[str, str]:
5050 # Amount transaction errors
5151 if is_xrp (self .amount ):
5252 errors ["amount" ] = "``amount`` cannot be XRP."
53-
54- if is_issued_currency (self .amount ):
53+ elif is_issued_currency (self .amount ):
5554 if self .holder is not None :
5655 errors ["amount" ] = "Cannot have Holder for currency."
57- if self .account == self .amount .issuer : # type:ignore
56+ if self .account == self .amount .issuer :
5857 errors ["amount" ] = "Holder's address is wrong."
59-
60- if is_mpt (self .amount ):
58+ elif is_mpt (self .amount ):
6159 if self .holder is None :
6260 errors ["amount" ] = "Missing Holder."
63- if self .account == self .holder :
61+ elif self .account == self .holder :
6462 errors ["amount" ] = "Invalid Holder account."
6563
6664 return errors
You can’t perform that action at this time.
0 commit comments