diff --git a/packages/kit/assets/onboarding/logo_okx_wallet.png b/packages/kit/assets/onboarding/logo_okx_wallet.png new file mode 100644 index 00000000000..764c1491fd9 Binary files /dev/null and b/packages/kit/assets/onboarding/logo_okx_wallet.png differ diff --git a/packages/kit/src/components/WalletConnect/WalletConnectQrcodeModal.tsx b/packages/kit/src/components/WalletConnect/WalletConnectQrcodeModal.tsx index 062fcb29ac0..c0cbc92cda4 100644 --- a/packages/kit/src/components/WalletConnect/WalletConnectQrcodeModal.tsx +++ b/packages/kit/src/components/WalletConnect/WalletConnectQrcodeModal.tsx @@ -20,6 +20,7 @@ import platformEnv from '@onekeyhq/shared/src/platformEnv'; import LogoWalletConnect from '../../../assets/onboarding/logo_walletconnect.png'; import { wait } from '../../utils/helper'; +import { openUrlExternal } from '../../utils/openUrl'; import { useConnectExternalWallet } from '../../views/ExternalAccount/useConnectExternalWallet'; import { useMobileRegistryOfWalletServices } from './useMobileRegistryOfWalletServices'; @@ -239,9 +240,14 @@ export function ConnectWalletListView({ logo={imgUri} logoSource={logoSource} isLoading={loadingId === item.id} - onPress={() => - doConnect({ walletService: item, itemLoadingId: item.id }) - } + onPress={() => { + if (item.name === 'OKX Wallet') { + // OKX Wallet not support walletconnect v1 + openUrlExternal('https://www.okx.com/web3'); + } else { + doConnect({ walletService: item, itemLoadingId: item.id }); + } + }} /> ); }); diff --git a/packages/kit/src/components/WalletConnect/useMobileRegistryOfWalletServices.tsx b/packages/kit/src/components/WalletConnect/useMobileRegistryOfWalletServices.tsx index 89fc13f4b0d..a1c671aaa64 100644 --- a/packages/kit/src/components/WalletConnect/useMobileRegistryOfWalletServices.tsx +++ b/packages/kit/src/components/WalletConnect/useMobileRegistryOfWalletServices.tsx @@ -25,6 +25,7 @@ function buildEnabledWallets({ WALLET_CONNECT_WALLET_NAMES['Trust Wallet'], WALLET_CONNECT_WALLET_NAMES.Rainbow, WALLET_CONNECT_WALLET_NAMES.imToken, + WALLET_CONNECT_WALLET_NAMES['OKX Wallet'], WALLET_CONNECT_WALLET_NAMES.TokenPocket, WALLET_CONNECT_WALLET_NAMES.BitKeep, WALLET_CONNECT_WALLET_NAMES.Zerion, diff --git a/packages/kit/src/components/WalletConnect/walletConnectConsts.ts b/packages/kit/src/components/WalletConnect/walletConnectConsts.ts index 5c05a6aace0..5765697fa59 100644 --- a/packages/kit/src/components/WalletConnect/walletConnectConsts.ts +++ b/packages/kit/src/components/WalletConnect/walletConnectConsts.ts @@ -83,6 +83,7 @@ export const WALLET_CONNECT_CLIENT_META = { export const WALLET_CONNECT_WALLET_NAMES = { 'MetaMask': 'MetaMask', + 'OKX Wallet': 'OKX Wallet', 'Trust Wallet': 'Trust Wallet', 'Rainbow': 'Rainbow', 'imToken': 'imToken',