🐛 forgot time_val in constructor

This commit is contained in:
EntireTwix 2021-06-23 15:10:10 -07:00
parent 567a24231d
commit ac859f2c17

View file

@ -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); }