[Bug]: Multichain - when there are three unapproved transactions across different networks, confirming the first one causes MetaMask to break with an error: 'Message: Minified React error #185; ...'
Describe the bug
When there are three unapproved transactions across different networks, confirming the first one causes MetaMask to break with an error: Message: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
STX toggle is OFF.
Latest v12.0.0 build
Expected behavior
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/104780023/8df97df9-efeb-4201-a152-f6433a70fd1a
Steps to reproduce
- Connect to Polygon on Uniswap
- Connect to BNB Chain on Pancakeswap
- Connect to Linea on Sushiswap
- Start a transaction on Uniswap, do not approve
- Start a transaction on Sushiswap, do not approve
- Start a transaction on Pancakeswap
- Blue badge on MetaMask icon displays '3' transaction
- Access the first transaction (created on Polygon) and confirm it
- See the error
Error messages or log output
No response
Version
12.0.0
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response
Another scenario where the Minified React error #185 doesn't happen and second transaction is created (and submitted) on the wrong network. Sometimes one of the three txs is not submitted (can't be seen in the Activity list).
- Start tx on BNB Chain (Pancakeswaps), do not approve
- Start tx on Linea (Sushiswaps), do not approve
- Start tx on Ethereum (Uniswap)
- Approve first transaction (BNB)
- MM popup showing next tx on Ethereum (nonce 1835 in the video, the amount (0.000 000 1) matches second tx, confirmation page shows sushi.com) confirm this transaction
- MM popup shows third transaction (nonce 1836, amount and dapp match the third transaction)
- Within the Activity you can see 1 tx on BNB Chain (I think I had 1 previous tx on BNB), two txs on Ethereum, no transactions on Linea.
https://github.com/MetaMask/metamask-extension/assets/104780023/bad15681-e671-465b-ae3c-a5f6ab5254ad
First tx:
Second tx:
Third tx:
The bug is present in this v12.0.0 build as well: https://github.com/MetaMask/metamask-extension/pull/25098#issuecomment-2198759615
Only two txs submitted:
https://github.com/MetaMask/metamask-extension/assets/104780023/59468cf8-faed-4702-810f-a459c572b427
I merged a PR for this exact scenario last week. 🤔. Will track this down ASAP https://github.com/MetaMask/metamask-extension/pull/25536
I can no longer reproduce any of these issues after this PR.https://github.com/MetaMask/metamask-extension/pull/25641
@darkwing
I think popup behavior looks acceptable for now? (correct me if I'm wrong). I don't see any errors in all scenarios I've tried.
https://github.com/MetaMask/metamask-extension/assets/104780023/7d9d1d6b-1a76-4d24-87bc-3a803d7eac19
Popup behavior above is being addressed by this PR: https://github.com/MetaMask/metamask-extension/pull/25619
Should we close this issue since it was reported to be fixed by this PR: https://github.com/MetaMask/metamask-extension/pull/25641 ?
@bschorchit I think so!
Closing with Tanya's recommendation.