fix: display thorchain and cosmos account label as the shortened address #6839
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updates the account label for cosmos and thorchain accounts to be the shortened "first four, last four" address, as is done with EVMs. This change was triggered by #6837 and expanded to be app-wide since it has actual utility UX-wise (see screenshots)
Pull Request Type
Issue (if applicable)
closes #6837
Risk
Low risk, only related to account labels which are presumably already wired up correctly.
Testing
Check account labels around the app are correct and that displaying thorchain and cosmos account labels as a shortened address makes sense. So far all known occurrences or thorchain and cosmos account labels DO make sense to be displayed as an address (see screenshots).
Engineering
Operations
Screenshots (if applicable)
Import accounts, borked account label:
Updated to behave like single-address accounts (EVMs):
Account selection in swapper, prod:
Updated to behave like single-address accounts (EVMs):
EVM accounts have address in back button:
Thorchain / Cosmos do not:
Fixed: