Skip to content

Commit

Permalink
Fix: temporarily disable injected wallets (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Apr 24, 2024
1 parent 38d8068 commit fc7a507
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/onboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import injectedWalletModule from '@web3-onboard/injected-wallets'
//import injectedWalletModule from '@web3-onboard/injected-wallets'
import walletConnect from '@web3-onboard/walletconnect'
import type { WalletInit } from '@web3-onboard/common/dist/types.d'
import { hexValue } from '@ethersproject/bytes'
Expand All @@ -10,12 +10,12 @@ import { getRpcServiceUrl } from '@/utils/web3'
import { WC_PROJECT_ID } from '@/config/constants'

export const enum WALLET_KEYS {
INJECTED = 'detectedwallet',
//INJECTED = 'detectedwallet',
WALLETCONNECT = 'WalletConnect',
}

const CGW_NAMES: { [key in WALLET_KEYS]: string } = {
[WALLET_KEYS.INJECTED]: 'detectedwallet',
//[WALLET_KEYS.INJECTED]: 'detectedwallet',
[WALLET_KEYS.WALLETCONNECT]: 'WalletConnect',
}

Expand All @@ -35,7 +35,7 @@ const walletConnectV2 = (chain: ChainInfo): WalletInit => {
}

const WALLET_MODULES: { [key in WALLET_KEYS]: (chain: ChainInfo) => WalletInit } = {
[WALLET_KEYS.INJECTED]: () => injectedWalletModule(),
//[WALLET_KEYS.INJECTED]: () => injectedWalletModule(),
[WALLET_KEYS.WALLETCONNECT]: (chain) => walletConnectV2(chain),
}

Expand Down

0 comments on commit fc7a507

Please sign in to comment.