feat: remove taproot address validator, closes #3670

This commit is contained in:
alter-eggo
2023-06-29 14:37:34 +04:00
committed by Anastasios
parent a798bd1a40
commit 0f33a29b91
2 changed files with 2 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ export function btcAddressValidator() {
});
}
// ts-unused-exports:disable-next-line
export function btcTaprootAddressValidator() {
return yup.string().test((input, context) => {
if (!input || !validate(input)) return false;

View File

@@ -15,7 +15,6 @@ import { useWalletType } from '@app/common/use-wallet-type';
import {
btcAddressNetworkValidator,
btcAddressValidator,
btcTaprootAddressValidator,
} from '@app/common/validation/forms/address-validators';
import { getNumberOfInscriptionOnUtxo } from '@app/query/bitcoin/ordinals/ordinals-aware-utxo.query';
import { useCurrentNetwork } from '@app/store/networks/networks.selectors';
@@ -113,8 +112,7 @@ export function useSendInscriptionForm() {
.string()
.required(FormErrorMessages.AddressRequired)
.concat(btcAddressValidator())
.concat(btcAddressNetworkValidator(currentNetwork.chain.bitcoin.network))
.concat(btcTaprootAddressValidator()),
.concat(btcAddressNetworkValidator(currentNetwork.chain.bitcoin.network)),
}),
};
}