@@ -105,7 +105,7 @@ impl Bolt12Payment {
105
105
hash : None ,
106
106
preimage : None ,
107
107
secret : None ,
108
- offer_id : offer. id ( ) ,
108
+ offer_id : Some ( offer. id ( ) ) ,
109
109
payer_note : payer_note. map ( UntrustedString ) ,
110
110
quantity,
111
111
} ;
@@ -130,7 +130,7 @@ impl Bolt12Payment {
130
130
hash : None ,
131
131
preimage : None ,
132
132
secret : None ,
133
- offer_id : offer. id ( ) ,
133
+ offer_id : Some ( offer. id ( ) ) ,
134
134
payer_note : payer_note. map ( UntrustedString ) ,
135
135
quantity,
136
136
} ;
@@ -211,7 +211,7 @@ impl Bolt12Payment {
211
211
hash : None ,
212
212
preimage : None ,
213
213
secret : None ,
214
- offer_id : offer. id ( ) ,
214
+ offer_id : Some ( offer. id ( ) ) ,
215
215
payer_note : payer_note. map ( UntrustedString ) ,
216
216
quantity,
217
217
} ;
@@ -236,7 +236,7 @@ impl Bolt12Payment {
236
236
hash : None ,
237
237
preimage : None ,
238
238
secret : None ,
239
- offer_id : offer. id ( ) ,
239
+ offer_id : Some ( offer. id ( ) ) ,
240
240
payer_note : payer_note. map ( UntrustedString ) ,
241
241
quantity,
242
242
} ;
@@ -293,7 +293,14 @@ impl Bolt12Payment {
293
293
) {
294
294
Ok ( ( ) ) => {
295
295
log_info ! ( self . logger, "Initiated sending {} msats to {}" , amount_msat, name) ;
296
- let kind = PaymentKind :: HrnBolt12Offer { hrn } ;
296
+ let kind = PaymentKind :: Bolt12Offer {
297
+ hash : None ,
298
+ preimage : None ,
299
+ secret : None ,
300
+ offer_id : None ,
301
+ payer_note : None ,
302
+ quantity : None
303
+ } ;
297
304
let payment = PaymentDetails :: new (
298
305
payment_id,
299
306
kind,
@@ -307,7 +314,14 @@ impl Bolt12Payment {
307
314
} ,
308
315
Err ( ( ) ) => {
309
316
log_error ! ( self . logger, "Failed to send payment to {}" , name) ;
310
- let kind = PaymentKind :: HrnBolt12Offer { hrn } ;
317
+ let kind = PaymentKind :: Bolt12Offer {
318
+ hash : None ,
319
+ preimage : None ,
320
+ secret : None ,
321
+ offer_id : None ,
322
+ payer_note : None ,
323
+ quantity : None
324
+ } ;
311
325
let payment = PaymentDetails :: new (
312
326
payment_id,
313
327
kind,
0 commit comments