MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.03k stars 1.06k forks source link

fix: stx on ramps missing origin (#10099) #10102

Closed infiniteflower closed 4 days ago

infiniteflower commented 4 days ago

Description

This is the cherry pick PR for #10099

This PR fixes an issue with Ramps and STX missing an origin. This will disable STX for all Ramps Send transactions.

Related issues

https://github.com/MetaMask/metamask-mobile/issues/10100

Fixes:

Manual testing steps

  1. Turn on STX
  2. Start an off ramp
  3. Should be a normal tx
  4. You should only see 1 off ramp transaction

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

Description

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 4 days 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.

sonarcloud[bot] commented 4 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov-commenter commented 4 days ago

Codecov Report

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

Please upload report for BASE (release/7.24.4@b1f0550). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/7.24.4 #10102 +/- ## ================================================= Coverage ? 48.02% ================================================= Files ? 1381 Lines ? 33540 Branches ? 3636 ================================================= Hits ? 16108 Misses ? 16447 Partials ? 985 ```

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

bkirb commented 4 days ago

LGTM for QA ✅ I tested iOS and Android, with smart transactions on and off.

https://github.com/MetaMask/metamask-mobile/assets/124314512/82407752-960d-4662-9d19-ae665bb20c9f https://github.com/MetaMask/metamask-mobile/assets/124314512/f36c47f1-aa6a-4e82-a513-1b5a3187b332

bkirb commented 3 days ago

IMG_4277 LGTM for QA, I verified the fix in RC 2

metamaskbot commented 2 days ago

No release label on PR. Adding release label release-7.24.4 on PR, as PR was added to branch 7.24.4 when release was cut.