metamask-extension
metamask-extension copied to clipboard
[Bug]: When attempting to send a non-native token, a message on the send screen states 'you already have one pending transaction.' Approval transaction is automatically confirmed.
Describe the bug
When attempting to send a non-native token, a message on the send screen states 'you already have one pending transaction.' Should the user choose to reject this transaction, it appears that the approval for the transaction is nonetheless automatically confirmed, a detail that can be verified both on a block explorer and within the Activity list. This suggests that the approval transaction may be processed in the background.
Expected behavior
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/104780023/a686e636-6118-4c45-b9a8-b4841d587033
Steps to reproduce
- Start Send transaction
- Choose non-native token
- Click 'Next'
- Notice the message about 1 pending transaction
- Reject transaction
- See the approval transaction confirmed
Error messages or log output
No response
Version
latest build
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response
Attempt to send non-native token using Send flow results in Unapproved Contract Interaction when the user has not confirmed they want to perform a transaction.
We now submit both transactions on confirm so this is resolved I think
@BZahory @ejwessel
We can proceed with closing this issue for now, just let's retain the label so we don't loose the bug:). As a precaution, should there be a future decision to revisit or reverse the removal of Confirmations.