Skip to content

Commit

Permalink
test wallet connect metadata, including DApp name and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason Smith committed Nov 28, 2024
1 parent 13584c1 commit 7669da2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,21 @@ const queryClient = new QueryClient({

function CreateCosmosApp({ Component, pageProps }: AppProps) {
const { themeClass } = useTheme();
const wcWallet = new WCWallet({
name: 'name', prettyName: 'prettyName', mode: 'wallet-connect',
logo: 'https://cosmology.zone/logos/products/create-cosmos-app.svg',
walletconnect: {
name: 'walletconnect.name', projectId: '1234567890'
}});
const wcWallet = new WCWallet(undefined, {
metadata: {
name: 'Cosmology',
description: 'The cosmos sdk provider',
url: 'https://cosmology.zone',
icons: ['https://cosmology.zone/logos/products/create-cosmos-app.svg'],
}
});

return (
<ThemeProvider>
<ChainProvider
chains={[defaultChain!]}
assetLists={[defaultAssetList!]}
// @ts-ignore
wallets={[keplrWallet, leapWallet, ledgerWallet, wcWallet]}
signerOptions={{
signing: () => {
Expand Down

0 comments on commit 7669da2

Please sign in to comment.