pendulum-chain / pendulum-chain/vortex
Add handling for MetaMask `TransactionExecutionError`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 33
Description
Context
Recently, a user encountered the following error when trying to sign the second transaction to transfer calls with Squidrouter. The previous transaction to approve the transfer worked fine.
TransactionExecutionError: An internal error was received.\n\nRequest Arguments:\n from: 0xAf734fcb8232ABb0495173Ff900f45F4c7901a84\n to: 0xce16F69375520ab01377ce7B88f5BA8C48F8D666\n value: 0.000044064932153443 ETH\n data: 0x2147796000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000135d32f800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000af734fcb8232abb0495173ff900f45f4c7901a8400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000004555344430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d6f6f6e6265616d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a3078636531364636393337353532306162303133373763653742383866354241384334384638443636360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000af734fcb8232abb0495173ff900f45f4c7901a8400000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ca01a1d0993565291051daff390892518acfad3a0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ca01a1d0993565291051daff390892518acfad3a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044095ea7b30000000000000000000000002ab52086e8edab28193172209407ff9df1103cdc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ca01a1d0993565291051daff390892518acfad3a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000002ab52086e8edab28193172209407ff9df1103cdc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000044f955ea3816828a871716f28bfaece9e22c7fb8bb869e31db73ba8cda1ca1b3a650209aa60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ca01a1d0993565291051daff390892518acfad3a0000000000000000000000000000000000000000000000000000000000000001ac1e1a193b47a06dc56aa0a44f79dd62\n gas: 520000\n\nDetails: Request of type 'smartTransaction:showSmartTransactionStatusPage' already pending for origin chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/. Please wait.\nVersion: viem@2.21.44
It seems like this is a known bug with MetaMask, see https://github.com/MetaMask/metamask-extension/issues/28518.
TODO
- Apparently this issue was mitigated in MetaMask version 12.9.2, see this comment. We should reach out to the user and ask which version of the MetaMask extension was used.
- Alternatively, we can add extra handling and check for the specific wording in the
detailsof the error.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. First inspect the transaction-signing error path and its viem@2.21.44 handling, then review MetaMask issue 28518 and confirm the affected extension version with the user. Done means an agreed response to this error is implemented and covered by an appropriate test or verified behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100