web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] Receive CONNECT_SUCCESS event instead of CONNECT_ERROR when deny access to MetaMask or Trust Wallet extention

Open slavaborovsky opened this issue 1 year ago • 1 comments

Link to minimal reproducible example

https://lab.web3modal.com/library/ethers/

Summary

When connecting using MetaMask or TrustWallet browser extensions and rejecting connection between the website and the extension, web3modal immediately closes and emits CONNECT_SUCCESS event instead of CONNECT_ERROR.

Screencast from 07-29-2024 12:35:44 PM.webm

Note that the Coinbase extension works properly where CONNECT_ERROR event is emitted.

List of related npm package versions

"@web3modal/ethers": "5.0.8", "ethers": "6.13.1",

slavaborovsky avatar Jul 29 '24 10:07 slavaborovsky

Can you send us a minimal reproducible example so I can reproduce it ?

rtomas avatar Aug 02 '24 22:08 rtomas

@rtomas You can try out with this please.

slavaborovsky avatar Sep 02 '24 10:09 slavaborovsky

thks @slavaborovsky

https://linear.app/walletconnect/issue/APKT-989/[bug]-receive-connect-success-event-instead-of-connect-error-when-deny

rtomas avatar Sep 02 '24 15:09 rtomas

This is fixed in the latest release. I'll close this issue for now, but please let me know if you're still able to reproduce.

0xmkh avatar Jan 23 '25 11:01 0xmkh