[bug] Receive CONNECT_SUCCESS event instead of CONNECT_ERROR when deny access to MetaMask or Trust Wallet extention
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",
Can you send us a minimal reproducible example so I can reproduce it ?
@rtomas You can try out with this please.
thks @slavaborovsky
https://linear.app/walletconnect/issue/APKT-989/[bug]-receive-connect-success-event-instead-of-connect-error-when-deny
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.