MetaMask / MetaMask/metamask-extension

TransactionExecutionError

Open
#31,778 0 comments 0 reactions 0 assignees View on GitHub
external-contributor
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### What is this about?

After initiating a smart contract transaction using MetaMask:

The MetaMask popup opens as expected.

The user clicks the "Confirm" button.

But the transaction fails silently:

❌ No transaction hash is generated.

❌ No error message or feedback is shown in the MetaMask UI.

❌ The transaction does not appear on-chain or in the pending list.

🔁 Note: The same transaction with the same data works perfectly with Bitget Wallet extension.

MetaMask exhibits inconsistent behavior, which causes issues in processing transactions. Sometimes it works as expected, but other times it fails silently — making it difficult to debug or rely on MetaMask for dApp users.

### Scenario

Open dApp

Initiate a smart contract function (e.g., swap )

MetaMask popup appears

User clicks Confirm

Popup closes but:

No transaction hash is returned

No feedback from MetaMask

Dev console shows internal error (see logs below)

{"cause":{"details":"Request of type 'smartTransaction:showSmartTransactionStatusPage' already pending for origin chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn. Please wait.","shortMessage":"An internal error was received.","version":"2.23.2","name":"InternalRpcError","code":-32603},"details":"Request of type 'smartTransaction:showSmartTransactionStatusPage' already pending for origin chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn. Please wait.","metaMessages":["Request Arguments:"," chain: undefined (id: 56)\n from: 0x0c2851178048a7A4A63F8579eB4d0beeC23722B4\n to: 0x3a23F943181408EAC424116Af7b7790c94Cb97a5\n data: 0x37c6145a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000bc454d70d89000000000000000000000000000000000000000000000000000000000000002000000000000000000000000021bac93ac478315711ce60b04f0a9f6c7496dde500000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000000000000000000000000000008d1e3e26905000000000000000000000000000000000000000000000000000000000000000019600000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000ac47899f9ed00000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000b73242aebaad30000000000000000000000000000c2851178048a7a4a63f8579eb4d0beec23722b400000000000000000000000000000000000000000000000000000000000008fb00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000009c490411a3200000000000000000000000055877bd7f2ee37bde55ca4b271a3631f3a7ef121000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000055d398326f99059ff775485246999027b3197955000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000055877bd7f2ee37bde55ca4b271a3631f3a7ef1210000000000000000000000000c2851178048a7a4a63f8579eb4d0beec23722b4000000000000000000000000000000000000000000000000b73242aebaad30000000000000000000000000000000000000000000000000000049cccf87385f52000000000000000000000000000000000000000000000000004a2bbfd8f1e6e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000038c7720238a2c123814aaf1a3d0e31e0093af046000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb00000000000000000000000047a90a2d92a8367a91efa1906bfc8c1e05bf10c40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000b73242aebaad300000000000000000000000000055877bd7f2ee37bde55ca4b271a3631f3a7ef12100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e55d398326f99059ff775485246999027b3197955000064bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001649f865422000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000000000010000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000004000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000242e1a7d4d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000922164bbbd36acf9e854acbbf32facc949fcaeef000000000000000000000000000000000000000000000000004a2bbfd8f1e6e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000000c2851178048a7a4a63f8579eb4d0beec23722b400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\n gas: 426858\n gasPrice: 1 gwei"],"shortMessage":"An internal error was received.","version":"2.23.2","name":"TransactionExecutionError"}

### Design

_No response_

### Technical Details

_No response_

### Threat Modeling Framework

_No response_

### Acceptance Criteria

_No response_

### Stakeholder review needed before the work gets merged

- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)

### References

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the smart-contract transaction on chain ID 56 with MetaMask version 2.23.2, then inspect the console output for the pending smartTransaction:showSmartTransactionStatusPage request. Compare the behavior with Bitget Wallet and establish a reproducible failure case; done means the transaction either returns a hash or presents actionable feedback instead of failing silently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.