From 0d70335e129ab696d696bd39b8c1f9cc0a5b942c Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Mon, 4 Sep 2023 10:11:11 +0100 Subject: [PATCH] fix circular dependency importing hex prefix --- packages/desktop/lib/electron/utils/ledger.utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/desktop/lib/electron/utils/ledger.utils.ts b/packages/desktop/lib/electron/utils/ledger.utils.ts index 46f30bbf41..2b77cbca46 100644 --- a/packages/desktop/lib/electron/utils/ledger.utils.ts +++ b/packages/desktop/lib/electron/utils/ledger.utils.ts @@ -1,9 +1,11 @@ -import { IEvmTransactionSignature } from '@core/layer-2/interfaces' -import { HEX_PREFIX } from '@core/utils' import AppEth from '@ledgerhq/hw-app-eth' import TransportNodeHid from '@ledgerhq/hw-transport-node-hid' import { listen } from '@ledgerhq/logs' +// import specifity for core modules to prevent circular dependencies +import { IEvmTransactionSignature } from '@core/layer-2/interfaces' +import { HEX_PREFIX } from '@core/utils/constants' + let transport: TransportNodeHid export async function openTransport(): Promise {