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 31bbd34 commit faf4072Copy full SHA for faf4072
lightning-invoice/src/utils.rs
@@ -336,7 +336,7 @@ fn _create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_has
336
.duration_since_epoch(duration_since_epoch)
337
.payee_pub_key(our_node_pubkey)
338
.payment_hash(Hash::from_slice(&payment_hash.0).unwrap())
339
- .payment_secret(payment_secret.unwrap())
+ .payment_secret(map_err(payment_secret))
340
.basic_mpp()
341
.min_final_cltv_expiry(MIN_FINAL_CLTV_EXPIRY.into())
342
.expiry_time(Duration::from_secs(invoice_expiry_delta_secs.into()));
0 commit comments