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
What I am doing:
After connecting to the wallet, I did not close the browser tab page.
Two days later, when I checked the returns from useAccount hook, I found that status returned reconnecting and isConnected returned true, and useConnections hook returned [].
Then I called the signMessage method: signMessage(config, {message}).
What I expected:
The signMessage method can be called normally.
What is actually happening:
I get an error, r.connector.getChainId is not a function
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.
Check existing issues
Describe the bug
What I am doing:
After connecting to the wallet, I did not close the browser tab page.
Two days later, when I checked the returns from
useAccount
hook, I found thatstatus
returnedreconnecting
andisConnected
returnedtrue
, anduseConnections
hook returned[]
.Then I called the signMessage method:
signMessage(config, {message})
.What I expected:
The signMessage method can be called normally.
What is actually happening:
I get an error,
r.connector.getChainId is not a function
Link to Minimal Reproducible Example
No response
Steps To Reproduce
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
2.12.12
Viem Version
2.21.12
TypeScript Version
5.0.4
Anything else?
The connected wallet is okx wallet
The text was updated successfully, but these errors were encountered: