File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1114,7 +1114,7 @@ impl OutboundPayments {
1114
1114
. as_ref ( )
1115
1115
. ok_or ( Bolt12PaymentError :: UnexpectedInvoice ) ?
1116
1116
. invoice_request ;
1117
- if !invoice. from_same_offer ( invreq) {
1117
+ if !invoice. is_from_same_offer ( invreq) {
1118
1118
return Err ( Bolt12PaymentError :: UnexpectedInvoice )
1119
1119
}
1120
1120
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 {
390
390
}
391
391
392
392
#[ 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 {
394
394
let invoice_offer_tlv_stream =
395
395
Offer :: tlv_stream_iter ( & self . bytes ) . map ( |tlv_record| tlv_record. record_bytes ) ;
396
396
let invreq_offer_tlv_stream =
You can’t perform that action at this time.
0 commit comments