diff --git a/include/transaction.h b/include/transaction.h index ee407e0..c4c5805 100644 --- a/include/transaction.h +++ b/include/transaction.h @@ -11,5 +11,4 @@ struct Transaction Transaction() noexcept; Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount, time_t time) noexcept; - Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount) noexcept; }; diff --git a/src/transaction.cpp b/src/transaction.cpp index 1d95895..c0c1456 100644 --- a/src/transaction.cpp +++ b/src/transaction.cpp @@ -2,4 +2,3 @@ Transaction::Transaction() noexcept {}; Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount, time_t time_val) noexcept : from(from_str), to(to_str), amount(amount), time(time_val) {} -Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount) noexcept : from(from_str), to(to_str), amount(amount) { time = std::time(NULL); } \ No newline at end of file