From 30f926b347697e96737493db0174b7bdfe6fb440 Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Mon, 4 Sep 2023 10:19:34 +0100 Subject: [PATCH] fix circular dependency importing hex prefix (#596) --- 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 {