Skip to content

Commit

Permalink
fix circular dependency importing hex prefix (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien authored Sep 4, 2023
1 parent a4865d6 commit 30f926b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/desktop/lib/electron/utils/ledger.utils.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
Expand Down

0 comments on commit 30f926b

Please sign in to comment.