Skip to content

Ensure that the approval fee in the swaps custom gas modal is in network specific currency#10763

Merged
danjm merged 1 commit intodevelopfrom
swaps-custom-gas-custom-network-approve-fee
Mar 30, 2021
Merged

Ensure that the approval fee in the swaps custom gas modal is in network specific currency#10763
danjm merged 1 commit intodevelopfrom
swaps-custom-gas-custom-network-approve-fee

Conversation

@danjm
Copy link
Contributor

@danjm danjm commented Mar 29, 2021

Addresses an issue found by @tmashuang while QAing v9.3.0

The extraInfoRow.value property passed from view-quote.js to the custom gas modal was using the amountInEth translation, meaning that the approve fee shown in the modal always had "ETH" as the currency symbol instead of the current networks symbol (e.g. BNB). This PR corrects that.

After:

Screenshot from 2021-03-29 21-25-10

@danjm danjm requested a review from a team as a code owner March 29, 2021 23:55
@danjm danjm requested a review from brad-decker March 29, 2021 23:55
@github-actions
Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [8c1439a]
Page Load Metrics (614 ± 42 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint437355105
domContentLoaded3857436138842
load3867446148842
domInteractive3857426138842

@danjm danjm force-pushed the swaps-custom-gas-custom-network-approve-fee branch from 8c1439a to 397cb5a Compare March 30, 2021 10:24
@metamaskbot
Copy link
Collaborator

Builds ready [397cb5a]
Page Load Metrics (584 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint47766194
domContentLoaded39872958310550
load39973058410550
domInteractive39872958310550

Copy link
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

I can confirm that the BNB and ETH labels are displaying properly in both mainnet and BNB swaps!

@danjm danjm merged commit be0b8a1 into develop Mar 30, 2021
@danjm danjm deleted the swaps-custom-gas-custom-network-approve-fee branch March 30, 2021 15:23
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 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.

3 participants