use HRP for appropriate network

fixes testnet
This commit is contained in:
sneurlax 2024-03-26 13:15:37 -05:00 committed by julian
parent f2effa3575
commit f630c3f567

View file

@ -166,7 +166,7 @@ class Bitcoin extends Bip39HDCurrency with PaynymCurrencyInterface {
final addr = coinlib.P2TRAddress.fromTaproot(
taproot,
hrp: coinlib.Network.mainnet.bech32Hrp,
hrp: networkParams.bech32Hrp,
);
return (address: addr, addressType: AddressType.p2tr);