Skip to content

fix: show correct asset and balance when BTC account is the selected account#25719

Merged
montelaidev merged 12 commits intodevelopfrom
fix/ap-514
Jul 10, 2024
Merged

fix: show correct asset and balance when BTC account is the selected account#25719
montelaidev merged 12 commits intodevelopfrom
fix/ap-514

Conversation

@montelaidev
Copy link
Copy Markdown
Contributor

@montelaidev montelaidev commented Jul 9, 2024

Description

This PR fixes the asset and balance that is shown in the account list when a BTC account is selected.

Related issues

Fixes https://github.com/MetaMask/accounts-planning/issues/514

Manual testing steps

  1. Create a BTC account
  2. Select the BTC account
  3. Go to a dapp
  4. Connect to the dapp
  5. See that the evm accounts show their native balance and ticker, and the BTC account shows the btc balance and ticker.

Screenshots/Recordings

Before

Screenshot 2024-07-09 at 22 40 08

After

Screenshot 2024-07-09 at 23 04 32

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.

@montelaidev montelaidev added the team-accounts-framework Accounts team label Jul 9, 2024
@montelaidev montelaidev self-assigned this Jul 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 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.

@montelaidev montelaidev marked this pull request as ready for review July 10, 2024 08:01
@montelaidev montelaidev requested review from a team as code owners July 10, 2024 08:01
@danroc danroc changed the title fix: account list balances and ticker shows the correct asset and balance when BTC account is the selected account. fix: account list balances and ticker shows the correct asset and balance when BTC account is the selected account Jul 10, 2024
@danroc danroc changed the title fix: account list balances and ticker shows the correct asset and balance when BTC account is the selected account fix: show correct asset and balance when BTC account is the selected account Jul 10, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [95c5e62]
Page Load Metrics (143 ± 170 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint62199963014
domContentLoaded95827157
load391684143354170
domInteractive95827157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -6.92 KiB (-0.10%)
  • common: 7.51 KiB (0.12%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [c78d48c]
Page Load Metrics (171 ± 206 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint743031064722
domContentLoaded99228199
load402035171429206
domInteractive99228199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -6.92 KiB (-0.10%)
  • common: 7.53 KiB (0.12%)

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.77%. Comparing base (5ee57a6) to head (7dba805).
Report is 21 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25719      +/-   ##
===========================================
- Coverage    69.77%   69.77%   -0.01%     
===========================================
  Files         1376     1377       +1     
  Lines        48403    48502      +99     
  Branches     13348    13378      +30     
===========================================
+ Hits         33773    33839      +66     
- Misses       14630    14663      +33     

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

Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
@sonarqubecloud
Copy link
Copy Markdown

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [7dba805]
Page Load Metrics (305 ± 286 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint673351066029
domContentLoaded95325105
load421940305596286
domInteractive95325105
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -6.92 KiB (-0.10%)
  • common: 7.53 KiB (0.12%)

Copy link
Copy Markdown
Contributor

@danroc danroc left a comment

Choose a reason for hiding this comment

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

Tested with the branch + develop, LGTM

@montelaidev montelaidev merged commit d445a4a into develop Jul 10, 2024
@montelaidev montelaidev deleted the fix/ap-514 branch July 10, 2024 16:38
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 10, 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-accounts-framework Accounts team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants