This commit is contained in:
adityapk
2018-11-08 14:43:10 -08:00
parent b1a5d6ec69
commit 71f4433a39
6 changed files with 12 additions and 17 deletions

View File

@@ -31,7 +31,7 @@ QList<TransactionItem> SentTxStore::readSentTxFile() {
QJsonDocument jsonDoc;
data.open(QFile::ReadOnly);
jsonDoc = QJsonDocument().fromJson(data.readAll());
jsonDoc = QJsonDocument::fromJson(data.readAll());
data.close();
QList<TransactionItem> items;
@@ -87,7 +87,7 @@ void SentTxStore::addToSentTx(Tx tx, QString txid) {
QJsonObject txItem;
txItem["type"] = "sent";
txItem["from"] = tx.fromAddr;
txItem["datetime"] = QDateTime().currentMSecsSinceEpoch() / (qint64)1000;
txItem["datetime"] = QDateTime::currentMSecsSinceEpoch() / (qint64)1000;
txItem["address"] = QString(); // The sent address is blank, to be consistent with t-Addr sent behaviour
txItem["txid"] = txid;
txItem["amount"] = -totalAmount;