forked from lthn/blockchain
Fixed bug with amount parsing
This commit is contained in:
parent
dcfac9a8cc
commit
8a0bbf7854
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue