[Bug]: Metamask is using currently selected wallet nonce instead of "connected wallet" nonce #29647
Labels
external-contributor
regression-prod-12.6.2
Regression bug that was found in production in release 12.6.2
type-bug
Describe the bug
On Firefox, Let's say I connected account 0x1 to website1.com and I'm doing stuff with it.
I go to website2.com, and want to connect another account. I select account 0x2 in Metamask and then connect to that website2.
If I go back to website1, it is still 0x1 that is connected to the website. However, when I try to do a transaction, Metamask is using 0x2 nonce (and other details) in the window of transaction (but still submitting with 0x1 account)
This results in failed transactions since 0x1 and 0x2 have different nonces.
Expected behavior
Metamask should use 0x1 data to do the tansaction
Screenshots/Recordings
0x0399 has a nonce of 6938 but Metamask tried to submit with nonce 22 because current selected account in Metamask is at nonce 21
Steps to reproduce
Error messages or log output
Detection stage
In production (default)
Version
12.6.2
Build type
None
Browser
Firefox
Operating system
Linux
Hardware wallet
No response
Additional context
No response
Severity
No response
The text was updated successfully, but these errors were encountered: