MetaMask / metamask-extension

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

User balance isn't enough - gas limit is set to maximum #10862

Closed VexyCats closed 4 hours ago

VexyCats commented 3 years ago

Describe the bug

If a user is submitting a transaction to a smart contract - and the gas fee + amount for transaction is over their balance, metamask will max out the gas limit showing them a gas fee of multiple thousands of dollars.

image

Steps to reproduce (REQUIRED) Steps to reproduce the behavior, libraries used with version number, and/or any setup information to easily reproduce:

  1. Go to mintable.app/art/item/Hidden-Dreams-What-we-create-in-our-minds-between-two-lines/Z9EjpX6Mu-wQJHB
  2. Use a wallet with no balance
  3. Click buy now
  4. See error

Expected behavior Should display an accurate gas price

VexyCats commented 3 years ago

Any idea why this happens?

danjm commented 3 years ago

We thought we fixed a very similar sounding bug with https://github.com/MetaMask/metamask-extension/issues/9967

More investigation will be needed

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

github-actions[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

ulope commented 8 months ago

Still an issue

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

bschorchit commented 4 hours ago

Closing in favor of: https://github.com/MetaMask/metamask-extension/issues/19692