web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] Ignored wagmi adapter connectors configuration

Open yurymarozau opened this issue 1 year ago • 1 comments

Link to minimal reproducible example

https://codesandbox.io/p/devbox/jolly-sky-28xqlr?file=%2Fapp%2Fconfig%2Findex.tsx&workspaceId=24106f18-90d3-4483-abb3-4a747ebd3a29

Summary

Hello! After migration to reown all configuration according to the connectors in the WagmiAdapter config are being ignored. Example: Only injected connecters are configured, but all possible connection are used: image

List of related npm package versions

"dependencies": { "@reown/appkit": "^1.0.5", "@reown/appkit-adapter-wagmi": "^1.0.5", "@tanstack/react-query": "^5.56.2", "next": "14.2.1", "react": "^18", "react-dom": "^18", "viem": "^2.21.15", "wagmi": "^2.12.14" }, "devDependencies": { "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "autoprefixer": "^10.4.19", "eslint": "^8", "eslint-config-next": "14.2.1", "postcss": "^8", "tailwindcss": "^3.4.3", "typescript": "^5" }

yurymarozau avatar Oct 01 '24 18:10 yurymarozau

After https://github.com/reown-com/appkit/pull/2985 there are duplicated connectors in the config, but none of them are showing up. image image image

Overall, issue still exists since I'm not able to control connectors (eg. if only WalletConnect connector is in the connectors list, there are injected connectors in the modal).

yurymarozau avatar Oct 03 '24 21:10 yurymarozau

I have the same issue (appkit 1.4.1 version). Set Wagmi according https://docs.reown.com/appkit/next/core/installation#wagmi-config

//Set up the Wagmi Adapter (Config)
export const wagmiAdapter = new WagmiAdapter({
  storage: createStorage({
    storage: cookieStorage
  }),
  ssr: true,
  projectId,
  networks
})

but ssr still false and cookie storage is not used

@enesozturk I see your merged MR https://github.com/reown-com/appkit/issues/2940 is it related somehow?

x0good avatar Nov 26 '24 18:11 x0good

@x0good can you confirm that is working in latest ? 1.5.3 ?

rtomas avatar Dec 11 '24 19:12 rtomas

@x0good can you confirm that is working in latest ? 1.5.3 ?

I fixed my usecase and already created MR here https://github.com/reown-com/reown-docs/pull/177

x0good avatar Dec 11 '24 19:12 x0good