Skip to content

Commit 479ef75

Browse files
committed
remove pub maker and doc comment
1 parent 1dab234 commit 479ef75

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/wallet/mod.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -331,16 +331,7 @@ where
331331
self.get_balances(total_anchor_channels_reserve_sats).map(|(_, s)| s)
332332
}
333333

334-
/// Validates a Bitcoin address is properly formatted and matches the expected network.
335-
///
336-
/// Returns `Ok(Address)` if valid, or:
337-
/// - `InvalidAddress` if malformed or for a different network
338-
///
339-
/// # Example
340-
/// ```
341-
/// let address = "tb1q..."; // Testnet address
342-
/// parse_and_validate_address(Network::Testnet, address)?;
343-
pub fn parse_and_validate_address(
334+
fn parse_and_validate_address(
344335
&self, network: Network, address: &Address,
345336
) -> Result<Address, Error> {
346337
Address::<NetworkUnchecked>::from_str(address.to_string().as_str())

tests/integration_tests_rust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ fn onchain_send_receive() {
304304

305305
let addr_a = node_a.onchain_payment().new_address().unwrap();
306306
let addr_b = node_b.onchain_payment().new_address().unwrap();
307-
// This is a Bitcoin Testnet address. Sending funds to this address from the Regtest network will fail
307+
// This is a Bitcoin Testnet address. Sending funds to this address from the Regtest network will fail
308308
let static_address = "tb1q0d40e5rta4fty63z64gztf8c3v20cvet6v2jdh";
309309
let unchecked_address = Address::<NetworkUnchecked>::from_str(static_address).unwrap();
310310
let addr_c = unchecked_address.assume_checked();

0 commit comments

Comments
 (0)