MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.84k stars 4.83k forks source link

[Bug]: Internal JSON-RPC error on balance sweep (Optimism) - `Can only call updateEditableParams on an unapproved transaction` #25577

Open alecov opened 2 months ago

alecov commented 2 months ago

Describe the bug

Sweeping ETH on Optimism to another address yields "Internal JSON-RPC error". No further information given. The attached console log is what happens right after clicking "Confirm".

Expected behavior

The transaction goes and the whole balance is transferred with no dust left.

Screenshots/Recordings

No response

Steps to reproduce

  1. Create a new transaction by clicking "Send";
  2. Select ETH;
  3. Click "Max";
  4. Click "Confirm";
  5. Internal JSON-RPC error.

Error messages or log output

sentry-install.js:1 TransactionsController: Can only call updateEditableParams on an unapproved transaction.
sentry-install.js:1 Internal JSON-RPC error.

Version

11.16.14

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

seaona commented 1 month ago

I got this same error, when I sent a transaction in Polygon. The issue seems to be when we select the Max value for the transaction. Once we confirm the tx, we get the error: Error: TransactionsController: Can only call updateEditableParams on an unapproved transaction.

Steps to reproduce:

  1. Select Tenderly network polygon
  2. Fund your account
  3. Start a tx
  4. Select Max amount
  5. Send
  6. Check UI

https://github.com/user-attachments/assets/c46241a9-e302-45ce-a202-eb9ec6216ee5