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
When using the autoConnect prop on the Provider, if a user connects via Wallet Connect using MetaMask (I did not test other Wallet Connect clients) and refreshes the page, the user appears connected from the perspective of wagmi (useAccount) returns an address, but actions involving the user's wallet will fail. Specifically, prompting a signature with useSignMessage seems to send a message across the Wallet Connect bridge and displays within the user's wallet, but never resolves in wagmi. Prompting a transaction with useTransaction calcuates gas, but does not display the transaction within the user's wallet.
Expected Behavior
After connecting via Wallet Connect and refreshing the page, the user remains connected and is able to complete actions with their wallet.
Steps To Reproduce
Connect using Wallet Connect
Refresh the page, have autoConnect set on wagmi provider
Attempt to use useTransaction or useSignMessage
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Agree that the issue on walletconnect looks to be the cause, thanks for flagging that. Not sure if you want to close this in favor of the upstream issue or leave this open to track.
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 other comments you can create a new discussion.
Is there an existing issue for this?
Package Version
0.2.9
Current Behavior
When using the
autoConnect
prop on the Provider, if a user connects via Wallet Connect using MetaMask (I did not test other Wallet Connect clients) and refreshes the page, the user appears connected from the perspective of wagmi (useAccount
) returns an address, but actions involving the user's wallet will fail. Specifically, prompting a signature withuseSignMessage
seems to send a message across the Wallet Connect bridge and displays within the user's wallet, but never resolves in wagmi. Prompting a transaction withuseTransaction
calcuates gas, but does not display the transaction within the user's wallet.Expected Behavior
After connecting via Wallet Connect and refreshing the page, the user remains connected and is able to complete actions with their wallet.
Steps To Reproduce
autoConnect
set on wagmi provideruseTransaction
oruseSignMessage
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: