Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: MetaMask SDK does not seem to work with basic Wagmi docs. #747

Open
httpJunkie opened this issue Mar 7, 2024 · 0 comments
Open
Assignees

Comments

@httpJunkie
Copy link

httpJunkie commented Mar 7, 2024

SDK

Web

Provide environment information

We had several hackers try to use MM SDK with Wagmi, only one was successful. We had no documentation to give to hackers except what was available on wagmi docs and now what is available on MetaMask SDK Docs. The DevRel and RAD team have also had issues getting MetaMask SDK to work in a basic ViteJS application. We have provided code at https://github.com/Consensys/create-web3-template and are creating this issue to help solve.

What we would like is a PR if possible with the changes needed for to show what the SDK engineering team suggests as far as setup, configuration and make this dapp work with SDK or SDK React UI.

If we can either get this code updated with the right config and setup or publish official docs that can help us.

MetaMask SDK Version

0.15.0

MetaMask Mobile app Version

N/A

What browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

local build

Describe the Bug

May not be a bug, but we don't have a better. category for filing issues with documentation. Information is above.

Expected Behavior

For MetaMask SDK to work with basic Vite, Wagmi config without using any of the third party libraries like ConnectKit, RainboKit, etc... Outside of basic configuration of the Connector neither Wagmi or MetaMask docs do not seem to suggest what additional setup (of provider and use of hooks or suggested handleConnect) or usage from within a component (similar to the ConnectButton component in the repo referenced in this issue).

Screenshot 2024-03-22 at 12 29 32 PM

We are using the @metamask/sdk-react, but should we suggest using the @metamask/sdk-react-ui.

Also, the steps in that page don't indicate to a new dev where the code should be used. But I could make suggestions once we have a working repo.

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

Follow Wagmi docs and run vitejs project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants