Skip to content

Commit

Permalink
fix: remove PK module for production
Browse files Browse the repository at this point in the history
  • Loading branch information
DenSmolonski committed Nov 25, 2024
1 parent 2cfc33a commit f8efacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/wallets/wallets.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TREZOR_APP_URL, TREZOR_EMAIL, WC_PROJECT_ID } from '@/config/constants'
import { TREZOR_APP_URL, TREZOR_EMAIL, WC_PROJECT_ID, IS_PRODUCTION } from '@/config/constants'
import type { ChainInfo } from '@safe-global/safe-gateway-typescript-sdk'
import type { InitOptions } from '@web3-onboard/core'
import coinbaseModule from '@web3-onboard/coinbase'
Expand Down Expand Up @@ -45,7 +45,7 @@ const WALLET_MODULES: Partial<{ [key in WALLET_KEYS]: (chain: ChainInfo) => Wall
[WALLET_KEYS.LEDGER]: () => ledgerModule() as WalletInit,
[WALLET_KEYS.TREZOR]: () => trezorModule({ appUrl: TREZOR_APP_URL, email: TREZOR_EMAIL }) as WalletInit,
[WALLET_KEYS.KEYSTONE]: () => keystoneModule() as WalletInit,
[WALLET_KEYS.PK]: (chain) => pkModule(chain.chainId, chain.rpcUri) as WalletInit,
...(!IS_PRODUCTION ? { [WALLET_KEYS.PK]: (chain) => pkModule(chain.chainId, chain.rpcUri) as WalletInit } : {}),
}

export const getAllWallets = (chain: ChainInfo): WalletInits => {
Expand Down

0 comments on commit f8efacd

Please sign in to comment.