Skip to content

Commit b709bb3

Browse files
committed
Mark the invoice Network getter no-export
...as it is redundant with the `currency` getter if we're not using the rust-bitcoin types natively.
1 parent 1505089 commit b709bb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning-invoice/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,8 @@ impl Invoice {
13601360
}
13611361

13621362
/// Returns the network for which the invoice was issued
1363+
///
1364+
/// This is not exported to bindings users, see [`Self::currency`] instead.
13631365
pub fn network(&self) -> Network {
13641366
self.signed_invoice.currency().into()
13651367
}

0 commit comments

Comments
 (0)