Skip to content

Commit

Permalink
Connect to more chainIds when connecting cosmos via wallet connect (#820
Browse files Browse the repository at this point in the history
)
  • Loading branch information
toddkao authored Feb 25, 2025
1 parent a7c2728 commit c981e6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-pets-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skip-go/widget": patch
---

connect more chainIds when wallet type is wallet connect
3 changes: 1 addition & 2 deletions packages/widget/src/hooks/useCreateCosmosWallets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
getCosmosWalletInfo,
keplrMainnetWithoutEthermintChainIdsInitialConnect,
keplrMainnetChainIdsInitialConnect,
walletConnectMainnetChainIdsInitialConnect,
walletMainnetChainIdsInitialConnect,
okxWalletChainIdsInitialConnect,
} from "@/constants/graz";
Expand Down Expand Up @@ -193,7 +192,7 @@ const getInitialChainIds = (wallet: WalletType) => {
const isWC = isWalletConnect(wallet);
const mobile = isMobile();

if (isWC) return walletConnectMainnetChainIdsInitialConnect;
if (isWC) return keplrMainnetChainIdsInitialConnect.filter((chainId) => chainId !== "wormchain");

switch (wallet) {
case WalletType.OKX:
Expand Down

0 comments on commit c981e6d

Please sign in to comment.