-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pass client to waitForTransactionReceipt #3929
Conversation
|
@@ -138,7 +140,7 @@ function SwitchChain() { | |||
<button | |||
disabled={chainId === chain.id} | |||
key={chain.id} | |||
onClick={() => switchChain({ chainId: chain.id })} | |||
onClick={() => switchChain({ chainId: chain.id as ChainIds })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
un-related. Saw an error, fixed an error.
config: { | ||
...config, | ||
// Additionally, we can pass a client to the config | ||
// to use a different client than the one passed to the hook | ||
client, | ||
}, | ||
chainId: connectorClientData?.chain?.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming this will help someone in the future when they run into / search this issue.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
40a89db
to
6dc1d22
Compare
Thanks for this! Think I'm going to take this on since there seems to be a larger internal types refactor. |
Description
Looking into
waitForTransactionReceipt
this seems like a no-op.useWaitForTransactionReceipt
getClient.test-d.ts
and move test cases togetClient.test.ts
locally, vitest wasn't runninggetClient.test-d.ts
.Notes
fixes: #3635