mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Disallow non-native transaction fees, rather than throwing on a non-comparable compare.
This commit is contained in:
@@ -62,7 +62,7 @@ TER Transactor::payFee()
|
||||
return telINSUF_FEE_P;
|
||||
}
|
||||
|
||||
if (saPaid.isNegative())
|
||||
if (saPaid.isNegative() || !saPaid.isNative())
|
||||
return temBAD_AMOUNT;
|
||||
|
||||
if (!saPaid) return tesSUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user