Skip to content

Add easy way to convert Bolt11InvoiceDescriptionRef to Bolt11InvoiceDescription #4012

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benthecarman
Copy link
Contributor

Small annoyance I found when updating in one of my downstream projects. If you want to turn a Bolt11InvoiceDescriptionRef into a Bolt11InvoiceDescription you had to do it manually. This is useful if you're trying to create an invoice with the same description as another invoice.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Aug 14, 2025

I've assigned @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

…escription

Small annoyance I found when updating in one of my downstream projects.
If you want to turn a Bolt11InvoiceDescriptionRef into a
Bolt11InvoiceDescription you had to do it manually. This is useful if
you're trying to create an invoice with the same description as another
invoice.
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.68%. Comparing base (ac8f897) to head (56dd01b).

Files with missing lines Patch % Lines
lightning-invoice/src/lib.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4012      +/-   ##
==========================================
- Coverage   88.85%   88.68%   -0.18%     
==========================================
  Files         175      174       -1     
  Lines      127710   127598     -112     
  Branches   127710   127598     -112     
==========================================
- Hits       113478   113158     -320     
- Misses      11675    11965     +290     
+ Partials     2557     2475      -82     
Flag Coverage Δ
fuzzing ?
tests 88.68% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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