From db9f3299a6a9c07d6b0b5f927c0eb0437a5c00e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 29 Sep 2025 12:23:16 +0200 Subject: [PATCH] JD: Use the correct field for TON configuration --- src/components/Form/ChainConfigurationForm.test.tsx | 6 +++--- src/components/Form/ChainConfigurationForm.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Form/ChainConfigurationForm.test.tsx b/src/components/Form/ChainConfigurationForm.test.tsx index 9ca4e27..bbe49c0 100644 --- a/src/components/Form/ChainConfigurationForm.test.tsx +++ b/src/components/Form/ChainConfigurationForm.test.tsx @@ -419,14 +419,14 @@ test('should able to create TON chain config', async () => { const address = container.querySelector('#select-accountAddr') expect(address).toBeInTheDocument() address && userEvent.click(address) - userEvent.click(getByRole('option', { name: 'ton_xxxx' })) - await screen.findByRole('button', { name: 'ton_xxxx' }) + userEvent.click(getByRole('option', { name: '123' })) + await screen.findByRole('button', { name: '123' }) await userEvent.click(getByRole('button', { name: /submit/i })) await waitFor(() => { expect(handleSubmit).toHaveBeenCalledWith({ - accountAddr: 'ton_xxxx', + accountAddr: '123', accountAddrPubKey: '', adminAddr: '0x1234567', chainID: '5555', diff --git a/src/components/Form/ChainConfigurationForm.tsx b/src/components/Form/ChainConfigurationForm.tsx index 2a1d250..99547df 100644 --- a/src/components/Form/ChainConfigurationForm.tsx +++ b/src/components/Form/ChainConfigurationForm.tsx @@ -266,7 +266,7 @@ export const ChainConfigurationForm = withStyles(styles)( break case ChainTypes.TON: chainAccountAddresses = - accountsNonEvm?.tonKeys.results.map((acc) => acc.id) ?? [] + accountsNonEvm?.tonKeys.results.map((acc) => acc.addressBase64) ?? [] break default: chainAccountAddresses = []