snaps
snaps copied to clipboard
Add support for explorer links in Address component
Currently the Address Snap UI component is used in the interfaces to display addresses and account names.
A requirement from Snaps is that they wrap this component around a Link to the explorer page. Yet, the explorer is defined in the extension/mobile app and the Snap is not aware of it. Duplicating this information in the Snap is problematic for maintainability and separation of concerns.
Requirement
- Add a
asExplorerLinkboolean to theAddresscomponent wrapping the component in a Link to the explorer. - Avoid duplication between Snap and extension/mobile