Skip to content

Commit

Permalink
use export const .massa
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed May 21, 2024
1 parent 4aa8e8c commit 4685dd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions web-frontend/src/pages/TransferCoins/SendCoins/SendForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
useFetchAccounts,
checkAddressFormat,
} from '@/utils';
import { mnsExtension } from '@/utils/const';
import { handlePercent } from '@/utils/math';

interface InputsErrors {
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions web-frontend/src/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ export const contracts = {
mnsContract: 'AS1CpitsdLu4dtbQrqAzhThygL2ytGyacFED1ogr2HsxZxfNy8qQ',
},
};

export const mnsExtension = '.massa';

0 comments on commit 4685dd7

Please sign in to comment.