-
Notifications
You must be signed in to change notification settings - Fork 69
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
Compilation error with wagmi v2 in Next.js #241
Comments
@heyitsarpit Hey, widget v2 doesn't support wagmi v2. Please use widget v3. |
I see that widget and sdk v3 are in alpha on npm. I suppose it's not safe to integrate them right now? |
@heyitsarpit It is pretty stable, and there shouldn't be any major breaking changes down the line. We will release a beta soon while we prepare documentation for the major release. |
okay thanks I'll look into this. |
@chybisov in the new config(v3), what replaces the walletManagement: {
signer: signer,
connect: async () => {
const connector = connectors[0]
await connectAsync({ connector })
const provider = (await connector.getProvider()) as Web3Provider
return provider?.getSigner() as Signer
},
disconnect: async () => {
await disconnect()
},
switchChain: async (chainId) => {
await switchChainAsync({
chainId: chainId as SUPPORTED_CHAINS_IDS
})
const client = wagmiConfig.getClient({
chainId: chainId as SUPPORTED_CHAINS_IDS
})
return walletClientToSigner(client)
}
} |
@heyitsarpit Please take a look at the Rainbowkit example https://github.com/lifinance/widget/tree/main/examples/rainbowkit TL;DR You don't have to use |
awesome let me test this out |
@heyitsarpit the |
Error Stack Trace
Versions
The text was updated successfully, but these errors were encountered: