Skip to content

Commit 78a494d

Browse files
authored
Merge pull request #106 from smartcontractkit/ton-fix
JD: Use the correct field for TON configuration
2 parents 371c5cf + db9f329 commit 78a494d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Form/ChainConfigurationForm.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,14 @@ test('should able to create TON chain config', async () => {
419419
const address = container.querySelector('#select-accountAddr')
420420
expect(address).toBeInTheDocument()
421421
address && userEvent.click(address)
422-
userEvent.click(getByRole('option', { name: 'ton_xxxx' }))
423-
await screen.findByRole('button', { name: 'ton_xxxx' })
422+
userEvent.click(getByRole('option', { name: '123' }))
423+
await screen.findByRole('button', { name: '123' })
424424

425425
await userEvent.click(getByRole('button', { name: /submit/i }))
426426

427427
await waitFor(() => {
428428
expect(handleSubmit).toHaveBeenCalledWith({
429-
accountAddr: 'ton_xxxx',
429+
accountAddr: '123',
430430
accountAddrPubKey: '',
431431
adminAddr: '0x1234567',
432432
chainID: '5555',

src/components/Form/ChainConfigurationForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export const ChainConfigurationForm = withStyles(styles)(
266266
break
267267
case ChainTypes.TON:
268268
chainAccountAddresses =
269-
accountsNonEvm?.tonKeys.results.map((acc) => acc.id) ?? []
269+
accountsNonEvm?.tonKeys.results.map((acc) => acc.addressBase64) ?? []
270270
break
271271
default:
272272
chainAccountAddresses = []

0 commit comments

Comments
 (0)