Skip to content

feat(ramps): add flag to ensure ramp networks are only fetched once#25686

Merged
georgeweiler merged 3 commits intodevelopfrom
fetch-ramp-networks-once
Jul 4, 2024
Merged

feat(ramps): add flag to ensure ramp networks are only fetched once#25686
georgeweiler merged 3 commits intodevelopfrom
fetch-ramp-networks-once

Conversation

@georgeweiler
Copy link
Copy Markdown
Contributor

@georgeweiler georgeweiler commented Jul 4, 2024

Description

This PR ensures that the rampable networks are only fetched once. There is no need to fetch them again once the array of buyable networks has been received.

Open in GitHub Codespaces

Related issues

Fixes: #25649

Manual testing steps

  1. Go to this page...

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 4, 2024

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.

@georgeweiler georgeweiler marked this pull request as ready for review July 4, 2024 14:06
@georgeweiler georgeweiler requested a review from a team as a code owner July 4, 2024 14:06
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 4, 2024

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [7fc9901]
Page Load Metrics (333 ± 293 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint712941216230
domContentLoaded105830147
load421934333610293
domInteractive105830147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 106 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.77%. Comparing base (d0a0227) to head (7fc9901).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25686   +/-   ##
========================================
  Coverage    69.77%   69.77%           
========================================
  Files         1376     1376           
  Lines        48397    48403    +6     
  Branches     13347    13348    +1     
========================================
+ Hits         33767    33773    +6     
  Misses       14630    14630           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a big improvement in performance/network requests. It also works around a bug currently present in develop. 🚀

@georgeweiler georgeweiler merged commit 5ee57a6 into develop Jul 4, 2024
@georgeweiler georgeweiler deleted the fetch-ramp-networks-once branch July 4, 2024 17:22
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-money-movement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Extension crashes after several transactions

4 participants