Closed
Description
Describe the bug
Whenever I have a pending transaction and I use the wallet_revokePermissions
method, that transaction is then cleared, as expected.
However, if I connect again into the dapp and trigger a new transaction and then again the wallet_revokePermissions
, that transaction is not cleared.
Expected behavior
We should clear pending transactions anytime wallet_revokePermissions
is used.
The PR which fixes the issue should also add an e2e for it here, as the current test doesn't cover this more complex scenario.
Screenshots/Recordings
revoke-permission-not-clear-txs.mp4
Steps to reproduce
- With a fresh install, go to the test dapp
- Connect
- Trigger a transaction (don't accept or reject)
- Open dapp console
- Trigger the request wallet_revokePermissions
- See tx is cleared
- Connect again to the test dapp
- Trigger a transaction (don't accept or reject)
- Trigger the request wallet_revokePermissions
- See tx is not cleared
await window.ethereum.request({
method: 'wallet_revokePermissions',
params: [
{
eth_accounts: {},
},
],
})
Error messages or log output
Detection stage
In production (default)
Version
12.9.1
Build type
None
Browser
Chrome
Operating system
Linux
Hardware wallet
No response
Additional context
No response
Severity
No response