From ac859f2c17aac19feee1d1de356cdb051bc7ab8a Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Wed, 23 Jun 2021 15:10:10 -0700 Subject: [PATCH] :bug: forgot time_val in constructor --- src/transaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction.cpp b/src/transaction.cpp index 78ca616..0850e7d 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -1,5 +1,5 @@ #include "transaction.h" Transaction::Transaction() = default; -Transaction::Transaction(std::string from_str, std::string to_str, uint32_t amount, time_t time) : from(from_str), to(to_str), amount(amount) {} +Transaction::Transaction(std::string from_str, std::string to_str, uint32_t amount, time_t time_val) : from(from_str), to(to_str), amount(amount), time(time_val) {} Transaction::Transaction(std::string from_str, std::string to_str, uint32_t amount) : from(from_str), to(to_str), amount(amount) { time = std::time(NULL); } \ No newline at end of file