From 3ac863ef22b53acfaff3f7f47f94b963750552b4 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 23 Jan 2019 10:44:19 -0800 Subject: [PATCH] Send amounts as strings --- src/websockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.cpp b/src/websockets.cpp index e0c8dd5..e01a118 100644 --- a/src/websockets.cpp +++ b/src/websockets.cpp @@ -192,7 +192,7 @@ QJsonDocument AppDataServer::processGetTransactions(MainWindow* mainWindow) { txns.append(QJsonObject{ {"type", "send"}, {"datetime", QDateTime::currentSecsSinceEpoch()}, - {"amount", wtxns[opid].toAddrs[0].amount}, + {"amount", Settings::getDecimalString(wtxns[opid].toAddrs[0].amount)}, {"txid", ""}, {"address", wtxns[opid].toAddrs[0].addr}, {"memo", wtxns[opid].toAddrs[0].txtMemo},