Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Gas - gasLimit value passed from a dapp cannot be changed and if small, no UI feedback but button disabled #21003

Closed
seaona opened this issue Sep 22, 2023 · 7 comments
Assignees
Labels
Sev2-normal Normal severity; minor loss of service or inconvenience. team-confirmations Push issues to confirmations team type-bug

Comments

@seaona
Copy link
Contributor

seaona commented Sep 22, 2023

Describe the bug

Problem: whenever a dapp passes a gasLimitvalue, we can see 2 issues:

  1. if the gasLimit is smaller than 21000 the transaction is triggered but the Confirm button is always disabled. No warning is showed.
  2. if the user then tries to edit the gas values, the gasLimit will not be edited, instead the dapp value is preserved. Meaning that the Confirm button will continue to be disabled in the case of (1)

Expected behavior

  1. Whenever the dapp passes a gasLimit smaller than 21000 (the smallest amount allowed) we should expect some feedback from the UI instead of just disable the Confirm button, so the user can understand what's going on
  2. Whenever the user changes then edits the gasLimit value, it should be saved and the Confirm button should be enabled

Screenshots

gas-limit-dapp.mp4

Steps to reproduce

  1. Checkout the test dapp locally
  2. Change the transferTokens gas value to the following values:
gasLimit: 20999,
  1. Go to the test dapp
  2. Click Create Token
  3. Accept tx
  4. Click Transfer token
  5. See Submit button is disabled
  6. Change gas settings
  7. See Submit button continues to be disabled

Error messages or log output

No response

Version

11.0.0 production

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

@seaona seaona added type-bug Sev2-normal Normal severity; minor loss of service or inconvenience. team-confirmations-planning (only for internal use within Confirmations team) labels Sep 22, 2023
Copy link
Contributor

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 github-actions bot added the stale issues and PRs marked as stale label Dec 21, 2023
Copy link
Contributor

github-actions bot commented Feb 4, 2024

This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
@seaona
Copy link
Contributor Author

seaona commented Feb 23, 2024

This issue is still present

@seaona seaona reopened this Feb 23, 2024
@seaona seaona removed the stale issues and PRs marked as stale label Feb 23, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Feb 23, 2024
@seaona seaona changed the title [Bug]: gasLimit value passed from a dapp cannot be changed and if small, no UI feedback but button disabled [Bug]: Gas - gasLimit value passed from a dapp cannot be changed and if small, no UI feedback but button disabled Feb 23, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Apr 9, 2024
Copy link
Contributor

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 github-actions bot added the stale issues and PRs marked as stale label May 23, 2024
@bschorchit bschorchit added team-confirmations Push issues to confirmations team and removed stale issues and PRs marked as stale team-confirmations-planning (only for internal use within Confirmations team) labels May 28, 2024
Copy link
Contributor

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 github-actions bot added the stale issues and PRs marked as stale label Aug 27, 2024
@bschorchit bschorchit removed the stale issues and PRs marked as stale label Sep 23, 2024
@bschorchit
Copy link

We should make sure this warning is shown in this case and make sure the user is able to edit it.

Maybe in the future we could automatically increase the gas limit to 21000? And just show a warning to tell the user that?

Image

@sleepytanya
Copy link
Contributor

sleepytanya commented Dec 20, 2024

The issue in not present in 12.10.0:

Screen.Recording.2024-12-20.at.11.13.38.mov

@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by team Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sev2-normal Normal severity; minor loss of service or inconvenience. team-confirmations Push issues to confirmations team type-bug
Projects
Archived in project
Status: Fixed
Development

No branches or pull requests

3 participants