Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Metamask is using currently selected wallet nonce instead of "connected wallet" nonce #29647

Open
dievardump opened this issue Jan 11, 2025 · 1 comment
Labels
external-contributor regression-prod-12.6.2 Regression bug that was found in production in release 12.6.2 type-bug

Comments

@dievardump
Copy link

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

Image

Steps to reproduce

  1. Go to a website(1) and connect account 0x1
  2. do a transaction
  3. Go to another website(2), select account 0x2, connect, do some actions
  4. Go back to website(1) and try to do a transaction, the nonce used will be 0x2 nonce since it's the selected wallet in Metamask (although not the connected wallet)

Error messages or log output

Transaction fails

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

@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Jan 11, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Jan 11, 2025
@metamaskbot metamaskbot added external-contributor regression-prod-12.6.2 Regression bug that was found in production in release 12.6.2 labels Jan 11, 2025
@FerrariGen
Copy link

@dievardump For the quickest resolution to your issue, we highly recommend using our live chat support, available 24/7. Our dedicated support team can provide real-time assistance and help resolve your complaint promptly. You can access the live chat here: Help SUPPORT.
If live chat is unavailable or you prefer to continue via email, please rest assured that our team will review your ticket and follow up with you as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor regression-prod-12.6.2 Regression bug that was found in production in release 12.6.2 type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

3 participants