From 829e359567ecab6293186c7433a18ace0864178a Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 26 Dec 2012 14:26:34 -0800 Subject: [PATCH] Disallow non-native transaction fees, rather than throwing on a non-comparable compare. --- src/cpp/ripple/Transactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/Transactor.cpp b/src/cpp/ripple/Transactor.cpp index 07e87592b5..047ddec61d 100644 --- a/src/cpp/ripple/Transactor.cpp +++ b/src/cpp/ripple/Transactor.cpp @@ -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;