1
0
Fork 0
forked from lthn/blockchain

Fixed bug with amount parsing

This commit is contained in:
cryptozoidberg 2021-08-26 15:03:42 +02:00
parent dcfac9a8cc
commit 8a0bbf7854
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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;
}