Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Fiat value displayed only for the native token #11901

Closed
sleepytanya opened this issue Oct 21, 2024 · 1 comment
Closed

[Bug]: Fiat value displayed only for the native token #11901

sleepytanya opened this issue Oct 21, 2024 · 1 comment
Assignees
Labels
regression-RC-7.34.0 Regression bug that was found in release candidate (RC) for release 7.34.0 Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-confirmations Push issues to confirmations team type-bug Something isn't working

Comments

@sleepytanya
Copy link
Contributor

sleepytanya commented Oct 21, 2024

Describe the bug

Fiat value displayed only for the native token, for all other tokens Not Available message is shown.

Expected behavior

Fiat values displayed for all tokens on all networks

Screenshots/Recordings

Screenshot 2024-10-20 at 23 53 29

Steps to reproduce

  1. Start Send or Swap transaction
  2. Select non-native tokens

Error messages or log output

No response

Detection stage

In production (default)

Version

7.34.0 (1462)

Build type

None

Device

iPhone 15, Samsung S24+

Operating system

iOS, Android

Additional context

No response

Severity

No response

@sleepytanya sleepytanya added type-bug Something isn't working team-confirmations Push issues to confirmations team regression-RC-7.34.0 Regression bug that was found in release candidate (RC) for release 7.34.0 labels Oct 21, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Oct 21, 2024
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Oct 21, 2024
@bschorchit bschorchit assigned bschorchit and OGPoyraz and unassigned bschorchit Oct 21, 2024
@bschorchit bschorchit added the Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking label Oct 22, 2024
NicolasMassart pushed a commit that referenced this issue Oct 24, 2024
…11947)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[In the recent
changes](https://github.com/MetaMask/core/pull/4364/files) token
exchange rates are determined from `marketData` which has no `value`
property anymore.
Hence `fetchTokenContractExchangeRates` was failing because rather than
`value` it should now read `price`

Please note that this is already fixed in `main` in the
`assets-controllers@33`.

## **Related issues**

Fixes: #11901

## **Manual testing steps**

1. Simulations should show fiat values properly

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

![Screenshot 2024-10-22 at 12 57
38](https://github.com/user-attachments/assets/18a0bbbb-753e-4eed-9438-f72573655e75)


## **Pre-merge author checklist**

- [X] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.
@bschorchit
Copy link

Closing as completed with #11947

@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by severity Oct 25, 2024
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by team Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-RC-7.34.0 Regression bug that was found in release candidate (RC) for release 7.34.0 Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-confirmations Push issues to confirmations team type-bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants