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]: Element (0:) out of place in sign typed data v4 #21725

Closed
benjisclowder opened this issue Nov 7, 2023 · 5 comments
Closed

[Bug]: Element (0:) out of place in sign typed data v4 #21725

benjisclowder opened this issue Nov 7, 2023 · 5 comments
Labels

Comments

@benjisclowder
Copy link
Contributor

Describe the bug

There is an element in the signature screen that is out of place or extra, the 0: below To: .

Expected behavior

No extra elements or elements out of place should show.

Screenshots/Recordings

image

Steps to reproduce

  1. Open MetaMask and enter your password
  2. Switch over to a test network (e.g.: Sepolia)
  3. Head over to the test dapp: https://metamask.github.io/test-dapp/ and connect with current MM account
  4. Scroll down to Sign typed data v4 and proceed to the signature screen
  5. Notice the 0: below To: which should not show

Error messages or log output

No response

Version

11.5.0

Build type

None

Browser

Chrome, Firefox

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

@benjisclowder benjisclowder added type-bug team-extension-client team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead release-11.5.0 Issue or pull request that will be included in release 11.5.0 labels Nov 7, 2023
@metamaskbot metamaskbot added the regression-prod-11.5.0 Regression bug that was found in production in release 11.5.0 label Nov 7, 2023
@danjm
Copy link
Contributor

danjm commented Nov 8, 2023

@benjisclowder I see the same 0: below the To: on v11.3.0

Is there a reason it should not be there on v11.5.0 even though it was there in the past?

@danjm
Copy link
Contributor

danjm commented Nov 9, 2023

I think this is not a bug, but might be worth some design review.

I can see that this behaviour of showing 0: below the To: existed as far backi as v10.18.0, before the redesign in recent months.

Screenshot from 2023-11-09 16-21-57

I can also see that our unit tests expect this value to be in the DOM
Screenshot from 2023-11-09 17-18-50

And that there are github issues going as far back as Apr 2020, without users complaining about that specific part of the screenshot #8452

However, I need to spend more time with the spec to see what was intended? Should the UI show array indices or not? Because this has been this was in MetaMask for years, I am going to remove the bug label, but I will leave it as an enhancement for the Confirmation teams consideration.

If you come across any info that shows we are significantly deviating from the intentions of this screen, please do flag it, as we may then escalate in priority

@danjm danjm added needs-research ux-enhancement team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead and removed type-bug team-extension-client team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead release-11.5.0 Issue or pull request that will be included in release 11.5.0 regression-prod-11.5.0 Regression bug that was found in production in release 11.5.0 labels Nov 9, 2023
@bschorchit
Copy link

Thank you both for flagging that and also for identifying it's not a bug. We'll be taking this issue into account as we go through the signTypedData_v4 redesign

@bschorchit bschorchit added team-confirmations-planning (only for internal use within Confirmations team) and removed team-confirmations-secure-ux DEPRECATED: please use "team-confirmations" label instead labels Nov 10, 2023
@bschorchit
Copy link

This continues to be true for signatures redesign - I'll check if there's a reason to continue to show or not.

Screenshot 2024-06-17 at 20 42 09 Screenshot 2024-06-17 at 20 43 02

@bschorchit bschorchit added team-confirmations Push issues to confirmations team and removed team-confirmations-planning (only for internal use within Confirmations team) labels Jun 17, 2024
@bschorchit
Copy link

Closing this issue for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants