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

fix: gas never loading during send + high gas fee after deep link #10965

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Aug 31, 2024

Description

Resolves two overlapping gas issues that were causing the gas fee to never finish loading during some wallet initiated send transactions, and for the gas fee estimate to be too high after using a deep link or QR code.

The gas fee estimates (and simulation details) were not loading as the simulation and gas fee polling in the TransactionController was silently failing due to recently added validations that were not compatible with the legacy ETHER_TRANSACTION type still being set in the Send view.

The resulting gas fee estimate was too high for deep links as the estimateGas call to the provider had an invalid value of 0 for the gasPrice which was resulting in an error response, and in turn setting the gasLimit to the fallback value of 95% of the block gas limit.

Additional error logging will be added to the TransactionController in future.

Related issues

Fixes: #10895 #10281

Manual testing steps

See issues.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Remove gasPrice during estimate.
@matthewwalsh0 matthewwalsh0 added the team-confirmations Push issues to confirmations team label Aug 31, 2024
@matthewwalsh0 matthewwalsh0 requested review from a team as code owners August 31, 2024 09:25
@matthewwalsh0 matthewwalsh0 added the Run Smoke E2E Triggers smoke e2e on Bitrise label Aug 31, 2024
Copy link
Contributor

github-actions bot commented Aug 31, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 1e130ba
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b8e0169f-eef9-4fca-bca3-628327cfd425

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@matthewwalsh0 matthewwalsh0 added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Aug 31, 2024
@matthewwalsh0 matthewwalsh0 added the Run Smoke E2E Triggers smoke e2e on Bitrise label Sep 1, 2024
Copy link
Contributor

github-actions bot commented Sep 1, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 60ef2cb
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/4b92b94c-5fd5-4496-b4f1-58734d9a11fc

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

sonarqubecloud bot commented Sep 1, 2024

@matthewwalsh0 matthewwalsh0 merged commit 7011ef8 into main Sep 2, 2024
37 of 38 checks passed
@matthewwalsh0 matthewwalsh0 deleted the fix/10895-gas-infinite-loading branch September 2, 2024 08:03
@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2024
@metamaskbot metamaskbot added the release-7.31.0 Issue or pull request that will be included in release 7.31.0 label Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.31.0 Issue or pull request that will be included in release 7.31.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Gas info not loading for send transactions initiated within the wallet
4 participants