Skip to content

Commit

Permalink
replacing unwrap of payment secret
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbright committed Dec 7, 2022
1 parent 31bbd34 commit faf4072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning-invoice/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ fn _create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_has
.duration_since_epoch(duration_since_epoch)
.payee_pub_key(our_node_pubkey)
.payment_hash(Hash::from_slice(&payment_hash.0).unwrap())
.payment_secret(payment_secret.unwrap())
.payment_secret(map_err(payment_secret))
.basic_mpp()
.min_final_cltv_expiry(MIN_FINAL_CLTV_EXPIRY.into())
.expiry_time(Duration::from_secs(invoice_expiry_delta_secs.into()));
Expand Down

0 comments on commit faf4072

Please sign in to comment.