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()) {