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

Prevent confirm screen from showing method name from contract registry for txes created within MetaMask #15472

Merged
merged 2 commits into from Aug 4, 2022

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Aug 4, 2022

Explanation:

Prior to v10.18.2, if we edited hex data on the send screen and sent to a contract address, we incorrectly identified it as a simple send. On 10.18.2 we correctly represent it as a contract interaction, but by doing so we show the name of the method associated with that 4-byte signature from the registry.

This PR maintains the representation of these transactions as contract interactions, but ensures that if they are created from within MetaMask, we don't show any specific names, to avoid any possibility of showing incorrect or malicious info to the user in these cases.

before:
Screenshot from 2022-08-04 16-08-10

after:
Screenshot from 2022-08-04 16-06-16

@danjm danjm requested a review from a team as a code owner August 4, 2022 18:35
@danjm danjm requested a review from darkwing August 4, 2022 18:35
@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2022

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.

…act, with tx data, from metamask send screen
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM

@seaona
Copy link
Contributor

seaona commented Aug 4, 2022

QA pass

@danjm danjm merged commit 4fdbc81 into develop Aug 4, 2022
@danjm danjm deleted the contract-interaction-tx-type branch August 4, 2022 19:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [6fb0efb]
Page Load Metrics (1716 ± 63 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint884311297234
domContentLoaded15632057170912158
load15632076171613263
domInteractive15632057170812158

highlights:

storybook

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.

None yet

5 participants