Show contract names in petnames by default #22735
Labels
INVALID-ISSUE-TEMPLATE
Issue's body doesn't match any issue template.
release-11.11.0
Issue or pull request that will be included in release 11.11.0
Objective:
To develop and integrate a new useDisplayName hook into the component. This hook aims to replicate the existing displayName logic, specifically in the context of the display of token names.
Development of useDisplayName Hook:
Create a new hook, useDisplayName, encapsulating the logic currently used to determine displayName.
The hook should sequentially check for:
In the event that no name is found for the address, a fallback will be used: a shortened version of the address.
Ensure the hook returns a string value representing the most appropriate display name based on the above checks.
Integration with
<Name/>
Component:useName
logic in the<Name/>
component with the newly createduseDisplayName
hook.The text was updated successfully, but these errors were encountered: