You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
The text was updated successfully, but these errors were encountered: