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 = []