This commit is contained in:
Aditya Kulkarni
2018-10-30 15:14:48 -07:00
parent 42959c26d6
commit d5bfcbe4b4
3 changed files with 5 additions and 5 deletions

View File

@@ -447,7 +447,7 @@ void RPC::refreshReceivedZTrans(QList<QString> zaddrs) {
// Lookup txid in the map
auto txidInfo = txidDetails->value(txid);
unsigned long timestamp;
qint64 timestamp;
if (txidInfo.find("time") != txidInfo.end()) {
timestamp = txidInfo["time"].get<json::number_unsigned_t>();
} else {
@@ -655,7 +655,7 @@ void RPC::refreshTransactions() {
TransactionItem tx{
QString::fromStdString(it["category"]),
(unsigned long)it["time"].get<json::number_unsigned_t>(),
(qint64)it["time"].get<json::number_unsigned_t>(),
(it["address"].is_null() ? "" : QString::fromStdString(it["address"])),
QString::fromStdString(it["txid"]),
it["amount"].get<json::number_float_t>() + fee,