🐛 Send funds should return false if refunded

This commit is contained in:
EntireTwix 2021-04-02 11:36:20 -07:00
parent efb769ee29
commit e4c262bd79

View file

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