Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version future-proofing with isUmaLnurlpQuery. #34

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

jklein24
Copy link
Contributor

Future versions of UMA may change fields in this request, etc. so treating a parse failure as "non-uma" isn't the right behavior. We should throw the UnsupportedVersionException before trying to parse other fields.

Future versions of UMA may change fields in this request, etc. so treating a parse failure as "non-uma" isn't the right behavior. We should allow the parsing to spit up the proper UnsupportedVersion exception later. This was causing the demo vasp to treat v1 requests as regular lnurl, rather than negotiating a lower UMA version.
@jklein24 jklein24 requested a review from shreyav March 20, 2024 22:26
@jklein24 jklein24 enabled auto-merge March 20, 2024 22:27
@jklein24 jklein24 merged commit 8938a38 into main Mar 20, 2024
2 checks passed
@jklein24 jklein24 deleted the fix/futureproofversion branch March 20, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants