File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1114,7 +1114,7 @@ impl OutboundPayments {
11141114 . as_ref ( )
11151115 . ok_or ( Bolt12PaymentError :: UnexpectedInvoice ) ?
11161116 . invoice_request ;
1117- if !invoice. from_same_offer ( invreq) {
1117+ if !invoice. is_from_same_offer ( invreq) {
11181118 return Err ( Bolt12PaymentError :: UnexpectedInvoice )
11191119 }
11201120 if invoice. invoice_features ( ) . requires_unknown_bits_from ( & features) {
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ impl StaticInvoice {
390390 }
391391
392392 #[ allow( unused) ] // TODO: remove this once we remove the `async_payments` cfg flag
393- pub ( crate ) fn from_same_offer ( & self , invreq : & InvoiceRequest ) -> bool {
393+ pub ( crate ) fn is_from_same_offer ( & self , invreq : & InvoiceRequest ) -> bool {
394394 let invoice_offer_tlv_stream =
395395 Offer :: tlv_stream_iter ( & self . bytes ) . map ( |tlv_record| tlv_record. record_bytes ) ;
396396 let invreq_offer_tlv_stream =
You can’t perform that action at this time.
0 commit comments