diff --git a/include/bank.hpp b/include/bank.hpp index 699708b..fb3edc0 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -51,10 +51,11 @@ public: b.balance += amount; })) { - //attempt to refund if destination doesnt exist + //attempt to refund if A exist users.modify_if(a_name, [amount](User &a) { a.balance += amount; }); + state = false; //because had to refund trasnaction } }