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