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

WalletClient type mismatching #4134

Closed
koa202405 opened this issue Jul 12, 2024 · 2 comments
Closed

WalletClient type mismatching #4134

koa202405 opened this issue Jul 12, 2024 · 2 comments
Labels
Area: Docs Area: Documentation

Comments

@koa202405
Copy link

What is the type of issue?

No response

What is the issue?

Docs says that useWalletClient will get viem WalletClient type, but actually, it get UseWalletClientReturnType, which doesn't satisfy the viem. I didn't know whether it is a docs issue.

I use viem and want to get a viem WalletClient type from wagmi, how can I do that?

docs: https://wagmi.sh/react/api/hooks/useWalletClient#usewalletclient

Where did you find it?

N/A

@koa202405 koa202405 added the Area: Docs Area: Documentation label Jul 12, 2024
@tmm
Copy link
Member

tmm commented Jul 12, 2024

const { data } = useWalletClient()
data
// ^? const data: WalletClient

@tmm tmm closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
Copy link
Contributor

This issue has been locked since it has been closed for more than 14 days.

If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: Docs Area: Documentation
Projects
None yet
Development

No branches or pull requests

2 participants