RPC fixes

This commit is contained in:
Aditya Kulkarni
2019-01-22 16:41:37 -08:00
parent 5b34b0a7c5
commit ea8375ce20

View File

@@ -112,7 +112,7 @@ QJsonDocument AppDataServer::processSendTx(QJsonObject sendTx, MainWindow* mainw
tx.fee = Settings::getMinerFee();
// Find a from address that has at least the sending amout
double amt = sendTx["amount"].toDouble();
double amt = sendTx["amount"].toString().toDouble();
auto allBalances = mainwindow->getRPC()->getAllBalances();
QList<QPair<QString, double>> bals;
for (auto i : allBalances->keys()) {