Skip to content

Commit

Permalink
Hrp::parse
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Sep 16, 2024
1 parent ee8b672 commit 4e4b0ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bitcoin/src/address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,8 @@ impl<V: NetworkValidation> Address<V> {
Network::Regtest => SCRIPT_ADDRESS_PREFIX_REGTEST,
};
let hrp = match self.network() {
Network::Mainnet => hrp::BC,
Network::Testnet | Network::Devnet => hrp::TB,
// Network::Mainnet => hrp::DF,
// Network::Testnet | Network::Devnet => hrp::TF,
Network::Mainnet => Hrp::parse("df").unwrap(),
Network::Testnet | Network::Devnet => Hrp::parse("tf").unwrap(),
Network::Regtest => hrp::BCRT,
};
let encoding = AddressEncoding { payload: self.payload(), p2pkh_prefix, p2sh_prefix, hrp };
Expand Down

0 comments on commit 4e4b0ab

Please sign in to comment.