Skip to content

Commit

Permalink
add okx wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPrimata committed Sep 16, 2024
1 parent e924d62 commit 6da64d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/components/wallet/WalletModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
partitionWallets,
useWallet,
} from "@aptos-labs/wallet-adapter-react";
import { OKXWallet } from "@okwallet/aptos-wallet-adapter";

import {
Box,
Breakpoint,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6da64d4

Please sign in to comment.