@@ -118,7 +118,7 @@ impl Bolt12Payment {
118
118
hash : None ,
119
119
preimage : None ,
120
120
secret : None ,
121
- offer_id : offer. id ( ) ,
121
+ offer_id : Some ( offer. id ( ) ) ,
122
122
payer_note : payer_note. map ( UntrustedString ) ,
123
123
quantity,
124
124
} ;
@@ -143,7 +143,7 @@ impl Bolt12Payment {
143
143
hash : None ,
144
144
preimage : None ,
145
145
secret : None ,
146
- offer_id : offer. id ( ) ,
146
+ offer_id : Some ( offer. id ( ) ) ,
147
147
payer_note : payer_note. map ( UntrustedString ) ,
148
148
quantity,
149
149
} ;
@@ -225,7 +225,7 @@ impl Bolt12Payment {
225
225
hash : None ,
226
226
preimage : None ,
227
227
secret : None ,
228
- offer_id : offer. id ( ) ,
228
+ offer_id : Some ( offer. id ( ) ) ,
229
229
payer_note : payer_note. map ( UntrustedString ) ,
230
230
quantity,
231
231
} ;
@@ -250,7 +250,7 @@ impl Bolt12Payment {
250
250
hash : None ,
251
251
preimage : None ,
252
252
secret : None ,
253
- offer_id : offer. id ( ) ,
253
+ offer_id : Some ( offer. id ( ) ) ,
254
254
payer_note : payer_note. map ( UntrustedString ) ,
255
255
quantity,
256
256
} ;
@@ -307,7 +307,14 @@ impl Bolt12Payment {
307
307
) {
308
308
Ok ( ( ) ) => {
309
309
log_info ! ( self . logger, "Initiated sending {} msats to {}" , amount_msat, name) ;
310
- let kind = PaymentKind :: HrnBolt12Offer { hrn } ;
310
+ let kind = PaymentKind :: Bolt12Offer {
311
+ hash : None ,
312
+ preimage : None ,
313
+ secret : None ,
314
+ offer_id : None ,
315
+ payer_note : None ,
316
+ quantity : None
317
+ } ;
311
318
let payment = PaymentDetails :: new (
312
319
payment_id,
313
320
kind,
@@ -321,7 +328,14 @@ impl Bolt12Payment {
321
328
} ,
322
329
Err ( ( ) ) => {
323
330
log_error ! ( self . logger, "Failed to send payment to {}" , name) ;
324
- let kind = PaymentKind :: HrnBolt12Offer { hrn } ;
331
+ let kind = PaymentKind :: Bolt12Offer {
332
+ hash : None ,
333
+ preimage : None ,
334
+ secret : None ,
335
+ offer_id : None ,
336
+ payer_note : None ,
337
+ quantity : None
338
+ } ;
325
339
let payment = PaymentDetails :: new (
326
340
payment_id,
327
341
kind,
0 commit comments