From ea8375ce2078fb14a41d517d5601e526881e9bed Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 22 Jan 2019 16:41:37 -0800 Subject: [PATCH] RPC fixes --- src/websockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.cpp b/src/websockets.cpp index 7ebc5bc..7296a2e 100644 --- a/src/websockets.cpp +++ b/src/websockets.cpp @@ -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> bals; for (auto i : allBalances->keys()) {