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

[Sentry] Error: Invalid transaction value "0x-1b152166322c8": not a positive number. #23894

Open sentry-io[bot] opened 5 months ago

sentry-io[bot] commented 5 months ago

Sentry Issue: METAMASK-X9JX

Error: Invalid transaction value "0x-1b152166322c8": not a positive number.
  at Generator.next (<anonymous>)
...
(5 additional frame(s) were not displayed)

Comment: Issue happens in the TransactionController, it seems people try to send a negative amount of ETH.

sentry-io[bot] commented 4 months ago

Sentry Issue: METAMASK-X9K6

seaona commented 1 month ago

I've encountered the exact same issue. To clarify: I was not trying to send a negative number amount. I started a transaction in Polygon network and when I submitted I got the error. I had very few amount of MATIC in my wallet and I suspected that maybe the tx failed due to not enough funds / miss-calculation of the max value I could send. I did the following:

  1. Select Polygon network
  2. Select an account with very few MATIC tokens
  3. Start a send to another address
  4. Select max amount by clicking the button -- it seemed as if I had enough balance to proceed
  5. Confirm tx
  6. See immediate failure after submitting

Screenshot from 2024-07-17 10-20-21