Skip to content

[Tech Task] Implement info subsection for request provenance, contract petname and method name #23945

@pedronfigueiredo

Description

@pedronfigueiredo

Important

@SayaGT to provide tooltip wireframes and copy

Progresses #23905

Context

The first subcomponent for the "info" sections of redesigned transaction confirmations we'll implement is the following:

Screenshot 2024-04-11 at 11 08 54

(Source: figma design files)

Approach

Create a dedicated component inside the confirm/info folder. The component will be imported inside the contract-interaction info component.

This component will make use of the existing <Name /> PetNames component.

It will also leverage https://www.4byte.directory/ to get the method name in human-readable format. This can be done by using getContractMethodData such as it's already used here. Note this method already takes into account whether or not that 3rd party request has been authorized by the user (so we will test both scenarios later on).

Acceptance Criteria

  • Implement the 3 fields "Request from", "Interacting with" and "Method" as a new component.
  • Import that component on the contract interaction info component.

References

https://github.com/MetaMask/MetaMask-planning/issues/873
#20098

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions