diff --git a/src/threshold-ts/tbtc/index.ts b/src/threshold-ts/tbtc/index.ts index 48b6db4f3..68255ff1b 100644 --- a/src/threshold-ts/tbtc/index.ts +++ b/src/threshold-ts/tbtc/index.ts @@ -1041,7 +1041,7 @@ export class TBTC implements ITBTC { return ( !isValidBtcAddress(btcAddress, network) || (!isPublicKeyHashTypeAddress(btcAddress, network) && - !isPayToScriptHashTypeAddress(btcAddress)) + !isPayToScriptHashTypeAddress(btcAddress, network)) ) } diff --git a/src/utils/forms.ts b/src/utils/forms.ts index 1617b133b..cb6780105 100644 --- a/src/utils/forms.ts +++ b/src/utils/forms.ts @@ -106,7 +106,7 @@ export const validateUnmintBTCAddress = ( } else if ( !isValidBtcAddress(address, network) || (!isPublicKeyHashTypeAddress(address, network) && - !isPayToScriptHashTypeAddress(address)) + !isPayToScriptHashTypeAddress(address, network)) ) { return `The BTC address has to start with ${getBridgeBTCSupportedAddressPrefixesText( "unmint",