diff --git a/web-frontend/src/pages/TransferCoins/SendCoins/SendForm.tsx b/web-frontend/src/pages/TransferCoins/SendCoins/SendForm.tsx index ded16d33..a5fe3303 100644 --- a/web-frontend/src/pages/TransferCoins/SendCoins/SendForm.tsx +++ b/web-frontend/src/pages/TransferCoins/SendCoins/SendForm.tsx @@ -33,6 +33,7 @@ import { useFetchAccounts, checkAddressFormat, } from '@/utils'; +import { mnsExtension } from '@/utils/const'; import { handlePercent } from '@/utils/math'; interface InputsErrors { @@ -96,8 +97,6 @@ export function SendForm(props: SendFormProps) { } }, [sendOpData, redirectAmount, redirectedTo, resolveDns]); - const mnsExtension = '.massa'; - function validate(formObject: IForm) { const { recipientAddress } = formObject; setError(null); diff --git a/web-frontend/src/utils/const.ts b/web-frontend/src/utils/const.ts index 372ce03e..94f6242c 100644 --- a/web-frontend/src/utils/const.ts +++ b/web-frontend/src/utils/const.ts @@ -11,3 +11,5 @@ export const contracts = { mnsContract: 'AS1CpitsdLu4dtbQrqAzhThygL2ytGyacFED1ogr2HsxZxfNy8qQ', }, }; + +export const mnsExtension = '.massa';