@@ -690,8 +690,8 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
690
690
/// From [`Offer::paths`] or [`Refund::paths`].
691
691
///
692
692
/// [`Offer::paths`]: crate::offers::offer::Offer::paths
693
- pub fn message_paths ( & $self) -> & [ BlindedPath ] {
694
- $contents. message_paths ( )
693
+ pub fn request_paths ( & $self) -> & [ BlindedPath ] {
694
+ $contents. request_paths ( )
695
695
}
696
696
697
697
/// The quantity of items supported.
@@ -726,9 +726,9 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
726
726
}
727
727
728
728
/// A possibly transient pubkey used to sign the invoice request or to send an invoice for a
729
- /// refund in case there are no [`message_paths `].
729
+ /// refund in case there are no [`request_paths `].
730
730
///
731
- /// [`message_paths `]: Self::message_paths
731
+ /// [`request_paths `]: Self::request_paths
732
732
pub fn payer_id( & $self) -> PublicKey {
733
733
$contents. payer_id( )
734
734
}
@@ -891,7 +891,7 @@ impl InvoiceContents {
891
891
}
892
892
}
893
893
894
- fn message_paths ( & self ) -> & [ BlindedPath ] {
894
+ fn request_paths ( & self ) -> & [ BlindedPath ] {
895
895
match self {
896
896
InvoiceContents :: ForOffer { invoice_request, .. } => {
897
897
invoice_request. inner . offer . paths ( )
@@ -1468,7 +1468,7 @@ mod tests {
1468
1468
assert_eq ! ( unsigned_invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1469
1469
assert_eq ! ( unsigned_invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
1470
1470
assert_eq ! ( unsigned_invoice. absolute_expiry( ) , None ) ;
1471
- assert_eq ! ( unsigned_invoice. message_paths ( ) , & [ ] ) ;
1471
+ assert_eq ! ( unsigned_invoice. request_paths ( ) , & [ ] ) ;
1472
1472
assert_eq ! ( unsigned_invoice. issuer( ) , None ) ;
1473
1473
assert_eq ! ( unsigned_invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
1474
1474
assert_eq ! ( unsigned_invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1510,7 +1510,7 @@ mod tests {
1510
1510
assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1511
1511
assert_eq ! ( invoice. offer_features( ) , Some ( & OfferFeatures :: empty( ) ) ) ;
1512
1512
assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1513
- assert_eq ! ( invoice. message_paths ( ) , & [ ] ) ;
1513
+ assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1514
1514
assert_eq ! ( invoice. issuer( ) , None ) ;
1515
1515
assert_eq ! ( invoice. supported_quantity( ) , Some ( Quantity :: One ) ) ;
1516
1516
assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
@@ -1607,7 +1607,7 @@ mod tests {
1607
1607
assert_eq ! ( invoice. description( ) , Some ( PrintableString ( "" ) ) ) ;
1608
1608
assert_eq ! ( invoice. offer_features( ) , None ) ;
1609
1609
assert_eq ! ( invoice. absolute_expiry( ) , None ) ;
1610
- assert_eq ! ( invoice. message_paths ( ) , & [ ] ) ;
1610
+ assert_eq ! ( invoice. request_paths ( ) , & [ ] ) ;
1611
1611
assert_eq ! ( invoice. issuer( ) , None ) ;
1612
1612
assert_eq ! ( invoice. supported_quantity( ) , None ) ;
1613
1613
assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
0 commit comments