From 6da64d44c972901fa15feef117b2e67a80ff759e Mon Sep 17 00:00:00 2001 From: primata Date: Mon, 16 Sep 2024 20:20:56 -0300 Subject: [PATCH] add okx wallet --- package.json | 1 + src/components/wallet/WalletModal.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6fcf13cc..05a2103d 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@mysten/dapp-kit": "0.14.14", "@mysten/sui": "1.4.0", "@nightlylabs/aptos-wallet-adapter-plugin": "^0.2.12", + "@okwallet/aptos-wallet-adapter": "^0.0.7", "@openblockhq/aptos-wallet-adapter": "^0.1.5", "@pontem/wallet-adapter-plugin": "^0.1.4", "@rise-wallet/wallet-adapter": "^0.1.2", diff --git a/src/components/wallet/WalletModal.tsx b/src/components/wallet/WalletModal.tsx index e1425560..36dd1942 100644 --- a/src/components/wallet/WalletModal.tsx +++ b/src/components/wallet/WalletModal.tsx @@ -8,6 +8,8 @@ import { partitionWallets, useWallet, } from "@aptos-labs/wallet-adapter-react"; +import { OKXWallet } from "@okwallet/aptos-wallet-adapter"; + import { Box, Breakpoint, @@ -77,7 +79,8 @@ export default function WalletsModal({ /** Wallets that use traditional wallet extensions */ otherWallets, } = getAptosConnectWallets(wallets); - + const walletsToAdd = [new OKXWallet]; + otherWallets.push(...walletsToAdd); const { /** Wallets that are currently installed or loadable. */ defaultWallets,