Open michaelWuensch opened 10 months ago
thank you very much! i am on it now
hey i saw calle actually should have fixed it 2 weeks ago, in version v0.1.2
here: https://github.com/lnbits/withdraw/pull/10.
can you test that again? or did you run latest already?
@dni Awesome! I tried it on the demo server ( https://legend.lnbits.com ) I just checked it and it is still v0.1.1 there. As I am not an admin I cannot change it.
Describe the bug When you create a LNURLw voucher that has a higher amount than available in the wallet and you try to withdraw it, the response is malformed. Wallets cannot read the error message if it doesn't follow the spec.
The specs can be found here: https://github.com/lnurl/luds/blob/luds/03.md The relevant section is step 6.
To Reproduce Steps to reproduce the behavior:
Expected behavior This response is expected: {"status": "ERROR", "reason": "Withdraw not working. Insufficient balance"}
But this response is delivered: {"detail":"withdraw not working. Insufficient balance."}
Desktop (please complete the following information):
Additional context Wallets cannot read this error message if it doesn't follow the spec.