From 2a92bd8090401ae9943834126b53fb24fcc361f8 Mon Sep 17 00:00:00 2001 From: netbonus <151201453+netbonus@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:41:30 -0400 Subject: [PATCH] update to use array for addrs --- src/__test__/e2e/bug.test.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/__test__/e2e/bug.test.ts b/src/__test__/e2e/bug.test.ts index d8dde9a3..dd6ea24f 100644 --- a/src/__test__/e2e/bug.test.ts +++ b/src/__test__/e2e/bug.test.ts @@ -1,7 +1,8 @@ /* eslint-disable quotes */ import { question } from 'readline-sync'; -import { fetchAddressesByDerivationPath, pair } from '../../api'; +import { fetchAddresses, pair } from '../../api'; import { setupClient } from '../utils/setup'; +import { HARDENED_OFFSET } from '../../constants'; describe('bug', () => { test('pair', async () => { @@ -13,6 +14,14 @@ describe('bug', () => { }); test('fetch cosmos', async () => { - await fetchAddressesByDerivationPath(`1852'/1815'/0'/0/0`); + await fetchAddresses({ + startPath: [ + HARDENED_OFFSET + 1852, + HARDENED_OFFSET + 1815, + HARDENED_OFFSET, + 0, + 0, + ], + }); }); });