From c95753550c535e478de4438b6116af446f93d284 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 21 May 2021 16:17:49 -0700 Subject: [PATCH] :bug: fixed a 0 amount bug on logs --- config.json | 7 ------- include/log.hpp | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config.json b/config.json index fa95be9..331a931 100644 --- a/config.json +++ b/config.json @@ -4,13 +4,6 @@ "address": "0.0.0.0", "port": 80, "https": false - }, - { - "address": "0.0.0.0", - "port": 443, - "https": true, - "cert": "", - "key": "" } ] } diff --git a/include/log.hpp b/include/log.hpp index a405cc1..9cfaead 100644 --- a/include/log.hpp +++ b/include/log.hpp @@ -31,7 +31,7 @@ struct Log { res[i]["to"] = data[i].to; res[i]["from"] = data[i].from; - res[i]["amount"] = data[i].amount; + res[i]["amount"] = (Json::UInt)data[i].amount; res[i]["time"] = (Json::UInt64)data[i].time; } return res;