diff --git a/components/factory/forms/ConfirmationForm.tsx b/components/factory/forms/ConfirmationForm.tsx index 1d584bd..1ad9ece 100644 --- a/components/factory/forms/ConfirmationForm.tsx +++ b/components/factory/forms/ConfirmationForm.tsx @@ -176,7 +176,7 @@ export default function ConfirmationForm({
You will be required to sign two messages: the first to create the token on the blockchain, and the second to configure the token's metadata, including its name, - symbol, description, and other details. + ticker, description, and other details.
)} {/* Token Information */} @@ -184,7 +184,7 @@ export default function ConfirmationForm({

Token Information

- +
{formData.symbol || formData.display}
diff --git a/components/factory/forms/Success.tsx b/components/factory/forms/Success.tsx index 2507c15..acbef4e 100644 --- a/components/factory/forms/Success.tsx +++ b/components/factory/forms/Success.tsx @@ -52,8 +52,8 @@ export default function Success({

{formData.name}

-

SYMBOL

-

{formData.symbol}

+

TICKER

+

{formData.display}

DESCRIPTION

diff --git a/components/factory/forms/TokenDetailsForm.tsx b/components/factory/forms/TokenDetailsForm.tsx index 78cb5d0..54822a2 100644 --- a/components/factory/forms/TokenDetailsForm.tsx +++ b/components/factory/forms/TokenDetailsForm.tsx @@ -31,6 +31,7 @@ export default function TokenDetails({ .noProfanity(), name: Yup.string().required('Name is required').noProfanity(), uri: Yup.string() + .optional() .url('Must be a valid URL') .matches(/^https:\/\//i, 'URL must use HTTPS protocol') .matches(/\.(jpg|jpeg|png|gif)$/i, 'URL must point to an image file'), @@ -44,7 +45,6 @@ export default function TokenDetails({ formData.isGroup && formData.groupPolicyAddress ? formData.groupPolicyAddress : address; const fullDenom = `factory/${effectiveAddress}/u${formData.subdenom}`; - console.log(formData); // Automatically set denom units React.useEffect(() => { const denomUnits = [ @@ -70,17 +70,11 @@ export default function TokenDetails({

- Token Metadata + Token Metadata for{' '} + ${formData.subdenom.toUpperCase()}

- -
-
+
+
) => { updateField('uri', e.target.value); handleChange(e); @@ -125,6 +122,7 @@ export default function TokenDetails({ handleChange(e); }} aria-label="Token description" + placeholder={'Enter the token description'} />
diff --git a/components/factory/forms/__tests__/ConfirmationForm.test.tsx b/components/factory/forms/__tests__/ConfirmationForm.test.tsx index 8ddc2d3..202ce56 100644 --- a/components/factory/forms/__tests__/ConfirmationForm.test.tsx +++ b/components/factory/forms/__tests__/ConfirmationForm.test.tsx @@ -24,7 +24,7 @@ describe('ConfirmationForm Component', () => { test('renders form with correct details', () => { renderWithProps(); - expect(screen.getByText('Symbol')).toBeInTheDocument(); + expect(screen.getByText('Ticker')).toBeInTheDocument(); expect(screen.getByText(mockTokenFormData.symbol)).toBeInTheDocument(); expect(screen.getByText('Description')).toBeInTheDocument(); diff --git a/components/factory/forms/__tests__/Success.test.tsx b/components/factory/forms/__tests__/Success.test.tsx index ef9cf24..03dac07 100644 --- a/components/factory/forms/__tests__/Success.test.tsx +++ b/components/factory/forms/__tests__/Success.test.tsx @@ -30,8 +30,8 @@ describe('Success Component', () => { renderWithChainProvider(); expect(screen.getByText('NAME')).toBeInTheDocument(); expect(screen.getByText(mockTokenFormData.name)).toBeInTheDocument(); - expect(screen.getByText('SYMBOL')).toBeInTheDocument(); - expect(screen.getByText(mockTokenFormData.symbol)).toBeInTheDocument(); + expect(screen.getByText('TICKER')).toBeInTheDocument(); + expect(screen.getByText(mockTokenFormData.display)).toBeInTheDocument(); expect(screen.getByText('DESCRIPTION')).toBeInTheDocument(); expect(screen.getByText(mockTokenFormData.description)).toBeInTheDocument(); }); diff --git a/components/factory/forms/__tests__/TokenDetailsForm.test.tsx b/components/factory/forms/__tests__/TokenDetailsForm.test.tsx index 6a20afb..eef2712 100644 --- a/components/factory/forms/__tests__/TokenDetailsForm.test.tsx +++ b/components/factory/forms/__tests__/TokenDetailsForm.test.tsx @@ -21,7 +21,6 @@ describe('TokenDetailsForm Component', () => { test('renders form with correct details', () => { renderWithChainProvider(); - expect(screen.getByLabelText('Subdenom')).toBeInTheDocument(); expect(screen.getByLabelText('Ticker')).toBeInTheDocument(); expect(screen.getByLabelText('Name')).toBeInTheDocument(); expect(screen.getByLabelText('Description')).toBeInTheDocument(); @@ -51,9 +50,6 @@ describe('TokenDetailsForm Component', () => { }); }); - const subdenomInput = screen.getByLabelText('Subdenom'); - expect(subdenomInput).toBeDisabled(); - const descriptionInput = screen.getByLabelText('Description'); fireEvent.change(descriptionInput, { target: { value: 'New Description' } }); await waitFor(() => {