Skip to content

Commit

Permalink
Merge pull request #535 from provenance-io/jarryd/more-tweaks
Browse files Browse the repository at this point in the history
feat: Add mobile support
  • Loading branch information
jarrydallison authored Oct 17, 2024
2 parents 5ccd1b3 + 25aeac0 commit 1011bd6
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/Providers/CosmosProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { SignerOptions } from 'cosmos-kit';
import { wallets } from '@cosmos-kit/leap-extension';
import { wallets as extension } from '@cosmos-kit/leap-extension';
import { wallets as mobile } from '@cosmos-kit/leap-mobile';
import { ChainProvider } from '@cosmos-kit/react';
import { assets, chains } from 'chain-registry';
import { Chain } from '@chain-registry/types';
Expand Down Expand Up @@ -74,7 +75,7 @@ export const CosmosProvider = ({ children }: { children: React.ReactNode }) => {
<ChainProvider
chains={[...chains, CHAIN_CONFIG]}
assetLists={[...assets, CHAIN_ASSETS]}
wallets={wallets}
wallets={[...extension, ...mobile]}
walletModal={undefined}
endpointOptions={{
isLazy: true,
Expand All @@ -89,18 +90,18 @@ export const CosmosProvider = ({ children }: { children: React.ReactNode }) => {
},
},
}}
// walletConnectOptions={{
// signClient: {
// projectId: 'a8510432ebb71e6948cfd6cde54b70f7',
// relayUrl: 'wss://relay.walletconnect.org',
// metadata: {
// name: 'CosmosKit Template',
// description: 'CosmosKit dapp template',
// url: 'https://docs.cosmology.zone/cosmos-kit/',
// icons: [],
// },
// },
// }}
walletConnectOptions={{
signClient: {
projectId: '6451479b4eb6d2967465521cb99ff677',
relayUrl: 'wss://relay.walletconnect.org',
metadata: {
name: 'CosmosKit Template',
description: 'CosmosKit dapp template',
url: 'https://docs.cosmology.zone/cosmos-kit/',
icons: [],
},
},
}}
// @ts-ignore
signerOptions={signerOptions}
>
Expand Down

0 comments on commit 1011bd6

Please sign in to comment.