-
Notifications
You must be signed in to change notification settings - Fork 741
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
@walletconnect/web3-provider not rejecting the promise on eth_sendTransaction when user deny it #375
Comments
Here is my old code to detect the rejection. Though I think I ever tested this with MetaMask desktop. I have not tested this with the latest wallet versions. Please tell me if it is helpful or not working - if the behavior is different with MetaMask desktop we need to find a way to address this. |
hmm, I am referring to user rejecting "pressing cancel" |
Yep, so this is how I handled with MetaMask desktop back in the day. You get the thrown error and then you need to figure out from crappy JavaScript exceptions that do not have a class what kind of an error this was. But if you are not getting an error in the first place then that's an issue. |
Yes exactly, the issue is that the promise never resolve, nor reject |
It has to be noted that EIP-1193 exists. This standard says when user rejects request, the Provider should return the status code of 4001. It seems like MetaMask desktop follows this standard. |
Any update on this? |
same issue on my side. |
@kamapcrazy same here |
Any updates? |
Hey @kamapcrazy ,@trylovetom ,@insky, @wighawag are either of you still experiencing this issue? |
Looks like fixed |
@walletconnect/web3-provider is not rejecting the request promise on
eth_sendTransaction
when the user deny it on its mobile wallet (tested on metamask)Instead the promise never resolve. leaving the app to decide what to do.
This is unfortunate as this force the app to make the user decline the tx twice, once on its wallet and once again in the app.
It would be better if walletconnect web3-provider reject the promise when the user deny the tx on its wallet
The text was updated successfully, but these errors were encountered: