Closed belane closed 6 years ago
When the "to" and "from" addresses are the same, the balance is not checked before return True.
This won’t produce any balance alteration but it would reflect transactions for amounts greater than the available funds.
If some software, third-party or API is watching these calls it can lead to a balance error.
I think is better to check the account balance before returning the value even for transfers to himself.
When the "to" and "from" addresses are the same, the balance is not checked before return True.
This won’t produce any balance alteration but it would reflect transactions for amounts greater than the available funds.
If some software, third-party or API is watching these calls it can lead to a balance error.
I think is better to check the account balance before returning the value even for transfers to himself.