From 8a0bbf785456503fe12649540cc793f8960935b2 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 26 Aug 2021 15:03:42 +0200 Subject: [PATCH] Fixed bug with amount parsing --- src/wallet/wallets_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 86856d90..ce29590e 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -1359,7 +1359,9 @@ std::string wallets_manager::transfer(size_t wallet_id, const view::transfer_par { return API_RETURN_CODE_BAD_ARG_INVALID_ADDRESS; } - else if(!currency::parse_amount(dsts.back().amount, d.amount)) + + + if(!currency::parse_amount(dsts.back().amount, d.amount)) { return API_RETURN_CODE_BAD_ARG_WRONG_AMOUNT; }