You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked there isn't already an issue for the bug I encountered.
Describe the bug
I am using vanilla js of wagmi with svelte kit.
I have implemented coinbase and walletConnect sdk and they are working fine.
But for metamask i have to call this function twice (calling it even number of times, it works).
First time clicking gives this warning:
MetaMaskSDK: No active provider found
Next time it upon clicking it works as expected.
This is the function that i have to call twice await connect(wagmiConfig, { connector:metaMask() });
Check existing issues
Describe the bug
I am using vanilla js of wagmi with svelte kit.
I have implemented coinbase and walletConnect sdk and they are working fine.
But for metamask i have to call this function twice (calling it even number of times, it works).
First time clicking gives this warning:
MetaMaskSDK: No active provider found
Next time it upon clicking it works as expected.
This is the function that i have to call twice
await connect(wagmiConfig, { connector:metaMask() });
Link to Minimal Reproducible Example
https://stackblitz.com/edit/sveltejs-kit-template-default-2piuac?file=src%2Froutes%2F%2Bpage.svelte
try npm ci if it stackblitz is not able to run the website
Steps To Reproduce
wagmiConfig = createConfig({ chains: supportedChains, connectors: [ metaMask(), coinbaseWallet(), walletConnect({ projectId: PUBLIC_WALLET_CONNECT_ID, }), injected(), ], transports: supportedTransports, });
the next part is inside button click:
What Wagmi package(s) are you using?
@wagmi/connectors, @wagmi/core
Wagmi Package(s) Version(s)
"@wagmi/connectors": "^5.2.1", "@wagmi/core": "^2.13.8",
Viem Version
"viem": "^2.21.27"
TypeScript Version
"typescript": "^5.6.3",
Anything else?
No response
The text was updated successfully, but these errors were encountered: