Skip to content

use native currency in asset row#10413

Merged
brad-decker merged 2 commits intodevelopfrom
custom-network-bugs
Feb 11, 2021
Merged

use native currency in asset row#10413
brad-decker merged 2 commits intodevelopfrom
custom-network-bugs

Conversation

@brad-decker
Copy link
Copy Markdown
Contributor

Fixes: #9701

Explanation:
The asset-row component in the send page had a method called 'renderETH' which used the 'userPreferencedCurrencyDisplay' but hardcoded ETH as the symbol/icon. This PR changes the nomenclature and implementation to consider the nativeCurrency.

I also noticed that when starting up the background there is nothing that initializes the nativeCurrency (it defaults to ETH, so even if you have a custom network with symbol setup correctly you'd get ETH showing up). I discovered this during development as reloading the application after changes and then refreshing my browser (expanded view) would result in 'ETH' showing back up until I clicked my custom network again in the network selector.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [6d1b7ca]
Page Load Metrics (620 ± 36 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint47755894
domContentLoaded4147196187737
load4217206207636
domInteractive4147196187737

@brad-decker brad-decker marked this pull request as ready for review February 9, 2021 21:53
@brad-decker brad-decker requested a review from a team as a code owner February 9, 2021 21:53
@brad-decker brad-decker requested a review from Gudahtt February 9, 2021 21:53
Copy link
Copy Markdown
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

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

LGTM

@brad-decker brad-decker merged commit bd16834 into develop Feb 11, 2021
@brad-decker brad-decker deleted the custom-network-bugs branch February 11, 2021 18:20
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom networks show the wrong base asset

3 participants