-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error on disconnect #13
Comments
@Mostafatalaat770 👋 can you add the code you are using to create and sign the message? I've used the |
The signing itself is not the problem, I guess due to the inconsistency of the connection, it throws the error Apparently, due to improper disconnection, the saved state by Walletconnect is corrupted. and when that happens, trust wallet takes more time before showing the connection modal, and when it redirects to the app, it takes so long before it gets connected or it doesn't even connect and throws multiple unhandled promises, and |
@Mostafatalaat770 Can you provide steps to reproduce it? I still cannot get the And also, can you try reproducing the error disabling |
Having same issue |
@StevenBarnett1 @Mostafatalaat770 the disconnect error is probably related with the provider's events unsubscription, can you check if removing this works? web3modal-react-native/src/hooks/useConfigure.ts Lines 97 to 104 in 72cf3a5
|
@ignaciosantise Removing this:
made it work perfectly |
Didn't work for me, I commented out that entire return block, reset npm cache, same issue |
try to delete the asyncstorage, |
Nope same problem, I ran AsyncStorage.clear() from app root index, commented it out, restarted app, same problem
|
Transactions are going through but they just hang at signer.sendTransaction(tx) so I can't actually get any data / use anything |
@StevenBarnett1 let me check |
@StevenBarnett1 check this branch |
Yes that's what I am doing,
|
@ignaciosantise So apparently, the cleanup function of the Or, whoever wants to have full access to the walletconnect state is to put the |
@ignaciosantise I used this to test: web3modal-react-native/example/src/utils/MethodUtil.ts Lines 41 to 48 in 388090a
it still causes the and it shows to sign the message normally, but on accepting, it throws the |
So any fix here? |
Same error for me: Works fine on Rainbow but does not decode the return of a signature ('personal_sign') on TrustWallet. |
Could you provide an example repo so i can reproduce the |
Here is the full POC with data on the versions used, let me know if you are missing information to reproduce! Knowing that a new problem appeared since my last message (I didn't change anything to the code) but the wallets are not displayed anymore and an infinite loader is displayed 👀 |
thanks @boulinb for the example repo! I was able to reproduce the error, and i also noticed now it's failing in this sdk example too. I'll talk with the team and come back with more answers, but in the meantime please use Alpha/Rainbow for testing 🙏 |
@ignaciosantise thanks for confirming! |
Let us close this issue and open another one related to the |
Connecting with the modal works perfectly, although when trying to disconnect the user's session using
provider.disconnect()
, it throws an errorError: Please call connect() before enable()
.How can I disconnect the user in that case? if I try to sign a message, it will open the wallet provider (eg: trust wallet) and prompt the user to sign the message, but then on retrieval, it throws
Error: Failed to decrypt
For more context,
this happens only if the provider is accessed using the
useWeb3Modal
hook from another component rather than the one which initiated the connection.Observation: the disconnect function may work, but
isConnected
is still true.I guess the disconnection works but the
isConnected
is the problem, and it throwsfailed to decrypt
due to a buggy connection state between the wallet connect and the wallet provider.The text was updated successfully, but these errors were encountered: