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

Commit cc97e9e

Browse files
committed
Set invoice labels after fedimint payment
1 parent dbca043 commit cc97e9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mutiny-core/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,10 @@ impl<S: MutinyStorage> MutinyWallet<S> {
816816
.pay_invoice(inv.clone(), labels.clone())
817817
.await;
818818
match payment_result {
819-
Ok(r) => return Ok(r),
819+
Ok(r) => {
820+
self.storage.set_invoice_labels(inv.clone(), labels)?;
821+
return Ok(r);
822+
}
820823
Err(e) => match e {
821824
MutinyError::PaymentTimeout => return Err(e),
822825
MutinyError::RoutingFailed => {

0 commit comments

Comments
 (0)