Skip to content

Commit faf4072

Browse files
committed
replacing unwrap of payment secret
1 parent 31bbd34 commit faf4072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ fn _create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_has
336336
.duration_since_epoch(duration_since_epoch)
337337
.payee_pub_key(our_node_pubkey)
338338
.payment_hash(Hash::from_slice(&payment_hash.0).unwrap())
339-
.payment_secret(payment_secret.unwrap())
339+
.payment_secret(map_err(payment_secret))
340340
.basic_mpp()
341341
.min_final_cltv_expiry(MIN_FINAL_CLTV_EXPIRY.into())
342342
.expiry_time(Duration::from_secs(invoice_expiry_delta_secs.into()));

0 commit comments

Comments
 (0)