Fixed decimal places

This commit is contained in:
b00lean 2015-06-01 22:11:16 +02:00
parent 470aaa8312
commit 3a4cf390fd
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class MynxtWallet implements IWallet{
recipient = recipientInt.toString();
}
SendResponse res = api.send2(email, password, masterPassword, accId, recipient, amount.multiply(NQT), DEFAULT_FEE_IN_NXT.multiply(NQT), 1440, "sendMoney");
SendResponse res = api.send2(email, password, masterPassword, accId, recipient, amount.multiply(NQT).stripTrailingZeros(), DEFAULT_FEE_IN_NXT.multiply(NQT).stripTrailingZeros(), 1440, "sendMoney");
if (res != null) {
log.debug("Transaction " + res.getTransaction() + " sent.");
return res.getTransaction();