MetaMask / metamask-extension

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

fix: DAPP initiated swaps in MetaMask #24382

Closed jpuri closed 1 week ago

jpuri commented 1 week ago

Description

Swaps initiated by DAPPS are throwing error in MetaMask.

Related issues

Fixes: https://github.com/MetaMask/metamask-extension/issues/24336

Manual testing steps

  1. Go to Uniswap / Pancakeswap etc.
  2. Start swap transaction
  3. Proceed to MetaMask confirmation screen
  4. Ensure no error is there

Screenshots/Recordings

Screenshot 2024-05-06 at 9 28 12 AM

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 1 week ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

sleepytanya commented 1 week ago

Dev build ddf99f1

Swaps initiated from dapps can be successfully submitted:

https://github.com/MetaMask/metamask-extension/assets/104780023/0590101a-acd3-49d7-98f7-319d88746116

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.35%. Comparing base (ff4dcfe) to head (3da3342). Report is 1 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #24382 +/- ## ======================================== Coverage 67.34% 67.35% ======================================== Files 1282 1282 Lines 50068 50070 +2 Branches 12986 12988 +2 ======================================== + Hits 33718 33720 +2 Misses 16350 16350 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

metamaskbot commented 1 week ago
Builds ready [ddf99f1]
Page Load Metrics (1109 ± 617 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint59164912814
domContentLoaded9311453
load47306511091285617
domInteractive9311453
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 29 Bytes (0.00%)
  • common: 0 Bytes (0.00%)
metamaskbot commented 1 week ago
Builds ready [3da3342]
Page Load Metrics (1914 ± 905 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint602441266029
domContentLoaded86123157
load48458119141885905
domInteractive86123157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 29 Bytes (0.00%)
  • common: 0 Bytes (0.00%)