@@ -14,7 +14,6 @@ import { BitcoinSendFormValues } from '@shared/models/form.model';
14
14
15
15
import { formatPrecisionError } from '@app/common/error-formatters' ;
16
16
import { useOnMount } from '@app/common/hooks/use-on-mount' ;
17
- import { notCurrentAddressValidator } from '@app/common/validation/forms/address-validators' ;
18
17
import {
19
18
btcInsufficientBalanceValidator ,
20
19
btcMinimumSpendValidator ,
@@ -27,7 +26,6 @@ import {
27
26
import { useUpdatePersistedSendFormValues } from '@app/features/popup-send-form-restoration/use-update-persisted-send-form-values' ;
28
27
import { useCurrentNativeSegwitUtxos } from '@app/query/bitcoin/address/utxos-by-address.hooks' ;
29
28
import { useCurrentBtcCryptoAssetBalanceNativeSegwit } from '@app/query/bitcoin/balance/btc-balance-native-segwit.hooks' ;
30
- import { useCurrentAccountNativeSegwitIndexZeroSigner } from '@app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks' ;
31
29
import { useCurrentNetwork } from '@app/store/networks/networks.selectors' ;
32
30
33
31
import { useCalculateMaxBitcoinSpend } from '../../family/bitcoin/hooks/use-calculate-max-spend' ;
@@ -37,7 +35,6 @@ export function useBtcSendForm() {
37
35
const [ isSendingMax , setIsSendingMax ] = useState ( false ) ;
38
36
const formRef = useRef < FormikProps < BitcoinSendFormValues > > ( null ) ;
39
37
const currentNetwork = useCurrentNetwork ( ) ;
40
- const nativeSegwitSigner = useCurrentAccountNativeSegwitIndexZeroSigner ( ) ;
41
38
const { data : utxos = [ ] , filteredUtxosQuery } = useCurrentNativeSegwitUtxos ( ) ;
42
39
const { balance } = useCurrentBtcCryptoAssetBalanceNativeSegwit ( ) ;
43
40
const sendFormNavigate = useSendFormNavigate ( ) ;
@@ -76,7 +73,6 @@ export function useBtcSendForm() {
76
73
recipient : nonEmptyStringValidator ( )
77
74
. concat ( btcAddressValidator ( ) )
78
75
. concat ( btcAddressNetworkValidator ( currentNetwork . chain . bitcoin . mode ) )
79
- . concat ( notCurrentAddressValidator ( nativeSegwitSigner . address || '' ) )
80
76
. concat (
81
77
complianceValidator (
82
78
btcAddressValidator ( ) ,
0 commit comments