This repository was archived by the owner on Feb 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1215,10 +1215,10 @@ impl<S: MutinyStorage> MutinyWallet<S> {
12151215 . await ?;
12161216
12171217 let bolt_11 = inv. bolt11 . expect ( "create inv had one job" ) ;
1218+ self . storage . set_invoice_labels ( bolt_11, labels) ?;
12181219 let pay_res = fedimint_client
12191220 . pay_invoice ( bolt_11. clone ( ) , labels. clone ( ) )
12201221 . await ?;
1221- self . storage . set_invoice_labels ( bolt_11, labels) ?;
12221222 let total_fees_paid = pay_res. fees_paid . unwrap_or ( 0 ) + fee;
12231223
12241224 return Ok ( FedimintSweepResult {
@@ -1267,10 +1267,10 @@ impl<S: MutinyStorage> MutinyWallet<S> {
12671267
12681268 log_debug ! ( self . logger, "attempting payment from fedimint client" ) ;
12691269 let bolt_11 = inv_to_pay. bolt11 . expect ( "create inv had one job" ) ;
1270+ self . storage . set_invoice_labels ( bolt_11, labels) ?;
12701271 let first_invoice_res = fedimint_client
12711272 . pay_invoice ( bolt_11. clone ( ) , labels. clone ( ) )
12721273 . await ?;
1273- self . storage . set_invoice_labels ( bolt_11, labels) ?;
12741274
12751275 let remaining_balance = fedimint_client. get_balance ( ) . await ?;
12761276 if remaining_balance > 0 {
You can’t perform that action at this time.
0 commit comments