verifyBalance called in Base (for fee check) and in Transfer (and other amount transactions) causing duplicate insufficient balance errors.
How did I fix it?
In Transfer, InTransfer, and OutTransfer: added extra check to make sure balance had at least enough funds for the fee, before returning balance error for amount to avoid duplicate errors.
What was the problem?
verifyBalance
called in Base (for fee check) and in Transfer (and otheramount
transactions) causing duplicate insufficient balance errors.How did I fix it?
In Transfer, InTransfer, and OutTransfer: added extra check to make sure balance had at least enough funds for the fee, before returning balance error for
amount
to avoid duplicate errors.How to test it?
npm test
Review checklist