-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: replace invoices by bolt11 #830
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
description={invoiceRef.current?.description} | ||
amount={invoiceRef.current?.satoshis} | ||
description={ | ||
invoiceRef.current?.tags.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what I did not like about the bolt11 package. There is no easy way to get the description (which probably most will need)
maybe we should make a PR to get a proper accessor for that? invoiceRef.current.description
? This should do the lookup then in the bolt11 package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this feels rather cumbersome. Let's try a PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened a PR: bitcoinjs/bolt11#60
bolt11 decode got updated :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Link this PR to an issue
Fixes #809
Type of change (Remove other not matching type)
Describe the changes you have made in this PR -)
Replaced the invoices lib by bolt11
PS: needs to be tested thoroughly