Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Set invoice labels after fedimint payment
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jan 14, 2024
1 parent dbca043 commit cc97e9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mutiny-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,10 @@ impl<S: MutinyStorage> MutinyWallet<S> {
.pay_invoice(inv.clone(), labels.clone())
.await;
match payment_result {
Ok(r) => return Ok(r),
Ok(r) => {
self.storage.set_invoice_labels(inv.clone(), labels)?;
return Ok(r);
}
Err(e) => match e {
MutinyError::PaymentTimeout => return Err(e),
MutinyError::RoutingFailed => {
Expand Down

0 comments on commit cc97e9e

Please sign in to comment.