When a dapp is connected to a different account from the active account that currently been selected in Metamask, the transaction nonce of active account is used instead of connected account, making transaction fails and not broadcasts.
Expected behavior
Metamask should retrieve nonce from account which is connected to the dapp.
Screenshots/Recordings
No response
Steps to reproduce
Import 2 accounts which have different transaction counts to Metamask.
Describe the bug
When a dapp is connected to a different account from the active account that currently been selected in Metamask, the transaction nonce of active account is used instead of connected account, making transaction fails and not broadcasts.
Expected behavior
Metamask should retrieve nonce from account which is connected to the dapp.
Screenshots/Recordings
No response
Steps to reproduce
Error messages or log output
No response
Detection stage
In production (default)
Version
12.5, 12.5.1, 12.6
Build type
None
Browser
Brave
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response