Skip to content

Commit

Permalink
chore: use enum rather than casting
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Dec 12, 2023
1 parent 52900ab commit 19ce803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/wallet/src/web3-react/connectors/LedgerConnector.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Web3Provider, ExternalProvider } from '@ethersproject/providers'
import { Actions, Connector, Provider, RequestArguments } from '@web3-react/types'

import type { LedgerConnectKit, SupportedProviders } from '@ledgerhq/connect-kit-loader'
import { LedgerConnectKit, SupportedProviders } from '@ledgerhq/connect-kit-loader'

type LedgerProvider = Provider & {
connected: () => boolean
Expand Down Expand Up @@ -79,8 +79,8 @@ export class Ledger extends Connector {

connectKit.enableDebugLogs()

providerType: 'Ethereum' as SupportedProviders,
connectKit.checkSupport({
providerType: SupportedProviders.Ethereum,
chainId: this.options.chainId,
infuraId: this.options.infuraId,
rpc: this.options.rpc,
Expand Down

0 comments on commit 19ce803

Please sign in to comment.