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]: Incorrect Fiat total on confirmations screen #23515

Closed
gauthierpetetin opened this issue Mar 15, 2024 · 1 comment · Fixed by #23524
Closed

[Bug]: Incorrect Fiat total on confirmations screen #23515

gauthierpetetin opened this issue Mar 15, 2024 · 1 comment · Fixed by #23524
Labels
regression-prod-11.12.0 Regression bug that was found in production in release 11.12.0 release-11.12.2 Issue or pull request that will be included in release 11.12.2 release-11.14.0 Issue or pull request that will be included in release 11.14.0 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-confirmations Push issues to confirmations team team-confirmations-planning (only for internal use within Confirmations team) team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead type-bug

Comments

@gauthierpetetin
Copy link
Contributor

gauthierpetetin commented Mar 15, 2024

Describe the bug

I wanted to participate to a free NFT mint on this website.
When I click on "Claim Now", I encounter two issues:

  1. The fiat total of the "Estimated fee" section is different from the fiat total of the "Total" section while the value in ETH is the same (which is what I expect since it's a free mint)
  2. There are two pending transactions instead of one (like if the transaction request was duplicated)

Expected behavior

  1. The fiat total of the "Estimated fee" section and the fiat total of the "Total" section shall be the same
  2. The shall be one single pending transaction

Screenshots/Recordings

Screenshot 2024-03-15 at 07 13 18

Steps to reproduce

  1. Go to this website
  2. Connect your wallet
  3. Click on "Claim Now"

Error messages or log output

No response

Version

11.12.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

  • Regression (sev1)
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Mar 15, 2024
@gauthierpetetin gauthierpetetin added Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead team-confirmations-system DEPRECATED: please use "team-confirmations" label instead team-confirmations-planning (only for internal use within Confirmations team) labels Mar 15, 2024
@metamaskbot metamaskbot added the regression-prod-11.12.0 Regression bug that was found in production in release 11.12.0 label Mar 15, 2024
@matthewwalsh0 matthewwalsh0 removed the team-confirmations-system DEPRECATED: please use "team-confirmations" label instead label Mar 15, 2024
danjm added a commit that referenced this issue Mar 15, 2024
## **Description**

This PR corrects the display of the "Total" value under the "Fee
Details" dropdown. It also ensures the "Fee details" dropdown is only
shown on layer 2 networks. This is the correct spec, as confirmed with
@bschorchit

## **Related issues**

Fixes: #23515

## **Manual testing steps**

1. On eth mainnet, create a transaction
2. There should be no "Fee details" dropdown, and other fee information
should be correct.

1. On Optimism, create a transaction
2. Their should be a fee details, and opening it should show a Total
that matches the estimated total shown below/outside the "fee details"
section

## **Screenshots/Recordings**

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

### **Before**

Layer 1

![Screenshot from 2024-03-15
14-08-03](https://github.com/MetaMask/metamask-extension/assets/7499938/ed348930-14db-4818-b207-9f3fa2c09ff6)

Layer 2

![Screenshot from 2024-03-15
14-07-10](https://github.com/MetaMask/metamask-extension/assets/7499938/bb879810-87bc-42cc-9bf5-4860aa6e5b75)

### **After**

Layer 1

![Screenshot from 2024-03-15
14-09-44](https://github.com/MetaMask/metamask-extension/assets/7499938/cce1d206-088c-4b60-889c-ed467e53b535)



Layer 2

![Screenshot from 2024-03-15
13-59-02](https://github.com/MetaMask/metamask-extension/assets/7499938/e8d41718-e10a-4f3e-873c-e55a64bed8b9)


## **Pre-merge author checklist**

- [ ] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've clearly explained what problem this PR is solving and how it
is solved.
- [ ] I've linked related issues
- [ ] I've included manual testing steps
- [ ] I've included screenshots/recordings if applicable
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
- [ ] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **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.

---------

Co-authored-by: Dan J Miller <[email protected]>
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by severity Mar 15, 2024
@metamaskbot metamaskbot added the release-11.14.0 Issue or pull request that will be included in release 11.14.0 label Mar 15, 2024
danjm added a commit that referenced this issue Mar 15, 2024
This PR corrects the display of the "Total" value under the "Fee
Details" dropdown. It also ensures the "Fee details" dropdown is only
shown on layer 2 networks. This is the correct spec, as confirmed with
@bschorchit

Fixes: #23515

1. On eth mainnet, create a transaction
2. There should be no "Fee details" dropdown, and other fee information
should be correct.

1. On Optimism, create a transaction
2. Their should be a fee details, and opening it should show a Total
that matches the estimated total shown below/outside the "fee details"
section

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

Layer 1

![Screenshot from 2024-03-15
14-08-03](https://github.com/MetaMask/metamask-extension/assets/7499938/ed348930-14db-4818-b207-9f3fa2c09ff6)

Layer 2

![Screenshot from 2024-03-15
14-07-10](https://github.com/MetaMask/metamask-extension/assets/7499938/bb879810-87bc-42cc-9bf5-4860aa6e5b75)

Layer 1

![Screenshot from 2024-03-15
14-09-44](https://github.com/MetaMask/metamask-extension/assets/7499938/cce1d206-088c-4b60-889c-ed467e53b535)

Layer 2

![Screenshot from 2024-03-15
13-59-02](https://github.com/MetaMask/metamask-extension/assets/7499938/e8d41718-e10a-4f3e-873c-e55a64bed8b9)

- [ ] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've clearly explained what problem this PR is solving and how it
is solved.
- [ ] I've linked related issues
- [ ] I've included manual testing steps
- [ ] I've included screenshots/recordings if applicable
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
- [ ] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

- [ ] 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.

---------

Co-authored-by: Dan J Miller <[email protected]>
@metamaskbot metamaskbot added the release-11.12.2 Issue or pull request that will be included in release 11.12.2 label Mar 15, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.12.2 on issue. Adding release label release-11.12.2 on issue, as issue is linked to PR #23524 which has this release label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-prod-11.12.0 Regression bug that was found in production in release 11.12.0 release-11.12.2 Issue or pull request that will be included in release 11.12.2 release-11.14.0 Issue or pull request that will be included in release 11.14.0 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-confirmations Push issues to confirmations team team-confirmations-planning (only for internal use within Confirmations team) team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead type-bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants