Using MetaData option for WalletConnectConnector with web3modal and w3mConnectors #3060
Unanswered
smartydev42
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I've tried to find the answer to this issue and i havent been able to.
I'm setting up walletconnect and web3modal within a wagmi nextJS project. So far so good, i have it all hooked up. When I connect using the web3modal setup defined in the docs my Trust Wallet uses the title of the webpage and no image to say 'this project wants to connect'. I want to define this to be something more specific and also provide an image.
Using: w3mConnectors to create the wagmiconfig doesnt have an option for metadata, but if i use WalletConnectConnector i can. But i cant see a way to use WalletConnectConnector with the web3modal setup. So i'm stuck, or confused.
Here is some code
^^ this sort of works it allows me to define the title and image, BUT the modal is weird, it doesnt have metamask or trust, even though i defined it.
If i replace my custom button with and also replace
if i do the above, i get the correct wallets in the modal, BUT i dont get the custom title, image and description. I get the websites title and no image. This isnt great as the title of the page is very SEO friendly, which is not short and snappy for the wallet.
I've attached an image of what i see in the web3modal using my custom solution.
Beta Was this translation helpful? Give feedback.
All reactions