diff --git a/web-frontend/src/pages/TransferCoins/SendCoins/SendConfirmation.tsx b/web-frontend/src/pages/TransferCoins/SendCoins/SendConfirmation.tsx index f952d6a1..afdec728 100644 --- a/web-frontend/src/pages/TransferCoins/SendCoins/SendConfirmation.tsx +++ b/web-frontend/src/pages/TransferCoins/SendCoins/SendConfirmation.tsx @@ -13,8 +13,8 @@ import { import { FiChevronLeft } from 'react-icons/fi'; import { PRESET_HIGH, PRESET_LOW, PRESET_STANDARD } from './Advanced'; -import { useFTTransfer } from '@/custom/smart-contract/useFTTransfer'; import { useMNS } from '@/custom/useMNS'; +import { usePrepareScCall } from '@/custom/usePrepareScCall'; import Intl from '@/i18n/i18n'; import { Asset } from '@/models/AssetModel'; import { maskAddress } from '@/utils'; @@ -36,7 +36,7 @@ interface SendConfirmationProps { export function SendConfirmation(props: SendConfirmationProps) { const { data, handleConfirm, isLoading } = props; - const { isMainnet } = useFTTransfer(); + const { isMainnet } = usePrepareScCall(); const { amount, asset, fees, recipientAddress } = data; const { symbol, decimals } = asset; @@ -59,7 +59,7 @@ export function SendConfirmation(props: SendConfirmationProps) { useEffect(() => { reverseResolveDns(recipientAddress); - }, [reverseResolveDns]); + }, [reverseResolveDns, recipientAddress]); let selectedFees;