MetaMask / MetaMask/metamask-extension

[Bug]: Failed Transactions - Batch + EIP7702 upgrade - Whenever I'm performing a batch tx and an Smart Account upgrade the tx fails

Open
#41,879 1 comment 0 reactions 0 assignees View on GitHub
INVALID-ISSUE-TEMPLATE Sev2-normal team-confirmations type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

**Describe the bug**

Whenever I'm performing a batch tx and an Smart Account upgrade the tx fails.
However, if I upgrade my account separately (from Account settings) and then perform that exact same batch tx, then the tx succeeds

**Expected behavior**

The upgrade tx + batch should succeed

**Screenshots/Recordings**

https://github.com/user-attachments/assets/c76eb6dc-c50d-430e-b167-1c587fdaaa29

**Steps to reproduce**

1. Go to Account details
2. Ensure your Account is an EOA (if not, downgrade to EOA)
3. Go to the test dapp
4. Connect
5. Trigger Batch USDC Swap on Mainnet
6. Confirm
7. See tx fails after some time
8. Go back to Account defails
9. Upgrade your Account to a Smart Account
10. Go back to the test dapp
11. Trigger the same batch tx
12. See how it now succeeds

**Error messages or log output**

```shell

```

**Where was this bug found?**

Internal release testing

**Version**

found in 13.28.0 but might already be in prod too

**Build type**

None

**Browser**

Chrome

**Operating system**

MacOS

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Account details and test dapp flow described, comparing the combined EOA upgrade plus Batch USDC Swap with the separate upgrade flow. Inspect the transaction handling for the EIP7702 upgrade and batch operation, then verify that the combined transaction succeeds without the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.