mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 Send funds should return false if refunded
This commit is contained in:
parent
efb769ee29
commit
e4c262bd79
1 changed files with 2 additions and 1 deletions
|
|
@ -51,10 +51,11 @@ public:
|
||||||
b.balance += amount;
|
b.balance += amount;
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
//attempt to refund if destination doesnt exist
|
//attempt to refund if A exist
|
||||||
users.modify_if(a_name, [amount](User &a) {
|
users.modify_if(a_name, [amount](User &a) {
|
||||||
a.balance += amount;
|
a.balance += amount;
|
||||||
});
|
});
|
||||||
|
state = false; //because had to refund trasnaction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue