MetaMask / metamask-extension

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

Update Gas API to use MetaMask Gas API #25194

Open desi opened 3 weeks ago

desi commented 3 weeks ago

What is this about?

We recently made a change to use a new Infura Gas API but we would like to go back to using the previous MetaMask Gas API which some additional changes are made to the Infura one. We should use gas.api.cx.metamask.io rather than gas.api.infura.io

dbrans commented 3 weeks ago

For context, here are the relevant changes:

Here's the plan for the hotfix:

  1. Create a single extension PR to patch the gas-fee-controller and revert the changes. Merge the PR into develop.
  2. Merge the PR into develop, cherry-pick it into 11.16.NEXT (the hotfix), and the Extension v12.0.0 RC.

After the hotfix, we'll need to regroup:

  1. Revert MetaMask/core/pull/4068 in core on top of the latest gas-fee-controller (v17)
  2. Upgrade gas-fee-controller in Extension and Mobile