Skip to content

Commit

Permalink
Fix testnet4 address lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
mononaut committed May 6, 2024
1 parent d8f4c60 commit f960caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ fn address_to_scripthash(addr: &str, network: Network) -> Result<FullHash, HttpE
// `addr_network` will be detected as Testnet for all of them.
addr_network == network
|| (addr_network == Network::Testnet
&& matches!(network, Network::Regtest | Network::Signet))
&& matches!(network, Network::Regtest | Network::Signet | Network::Testnet4))
};

#[cfg(feature = "liquid")]
Expand Down

0 comments on commit f960caa

Please sign in to comment.