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 +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1215,10 +1215,9 @@ impl<S: MutinyStorage> MutinyWallet<S> {
12151215 . await ?;
12161216
12171217 let bolt_11 = inv. bolt11 . expect ( "create inv had one job" ) ;
1218- let pay_res = fedimint_client
1219- . pay_invoice ( bolt_11. clone ( ) , labels. clone ( ) )
1220- . await ?;
1221- self . storage . set_invoice_labels ( bolt_11, labels) ?;
1218+ self . storage
1219+ . set_invoice_labels ( bolt_11. clone ( ) , labels. clone ( ) ) ?;
1220+ let pay_res = fedimint_client. pay_invoice ( bolt_11, labels) . await ?;
12221221 let total_fees_paid = pay_res. fees_paid . unwrap_or ( 0 ) + fee;
12231222
12241223 return Ok ( FedimintSweepResult {
@@ -1267,10 +1266,9 @@ impl<S: MutinyStorage> MutinyWallet<S> {
12671266
12681267 log_debug ! ( self . logger, "attempting payment from fedimint client" ) ;
12691268 let bolt_11 = inv_to_pay. bolt11 . expect ( "create inv had one job" ) ;
1270- let first_invoice_res = fedimint_client
1271- . pay_invoice ( bolt_11. clone ( ) , labels. clone ( ) )
1272- . await ?;
1273- self . storage . set_invoice_labels ( bolt_11, labels) ?;
1269+ self . storage
1270+ . set_invoice_labels ( bolt_11. clone ( ) , labels. clone ( ) ) ?;
1271+ let first_invoice_res = fedimint_client. pay_invoice ( bolt_11, labels) . await ?;
12741272
12751273 let remaining_balance = fedimint_client. get_balance ( ) . await ?;
12761274 if remaining_balance > 0 {
You can’t perform that action at this time.
0 commit comments