We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3123f commit 7264f66Copy full SHA for 7264f66
src/payment/bolt11.rs
@@ -833,12 +833,12 @@ impl TryInto<Bolt11InvoiceDescription> for &Bolt11InvoiceStringDescription {
833
Bolt11InvoiceStringDescription::Direct { description } => {
834
Description::new(description.clone())
835
.map(Bolt11InvoiceDescription::Direct)
836
- .map_err(|_| Error::InvalidInvoice)
+ .map_err(|_| Error::InvoiceCreationFailed)
837
},
838
Bolt11InvoiceStringDescription::Hash { hash } => Sha256::from_str(&hash)
839
.map(lightning_invoice::Sha256)
840
.map(Bolt11InvoiceDescription::Hash)
841
- .map_err(|_| Error::InvalidInvoice),
+ .map_err(|_| Error::InvoiceCreationFailed),
842
}
843
844
0 commit comments