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> {
1215
1215
. await ?;
1216
1216
1217
1217
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 ?;
1222
1221
let total_fees_paid = pay_res. fees_paid . unwrap_or ( 0 ) + fee;
1223
1222
1224
1223
return Ok ( FedimintSweepResult {
@@ -1267,10 +1266,9 @@ impl<S: MutinyStorage> MutinyWallet<S> {
1267
1266
1268
1267
log_debug ! ( self . logger, "attempting payment from fedimint client" ) ;
1269
1268
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 ?;
1274
1272
1275
1273
let remaining_balance = fedimint_client. get_balance ( ) . await ?;
1276
1274
if remaining_balance > 0 {
You can’t perform that action at this time.
0 commit comments