Summary
Full Stellar wallet addresses are too long to display in the UI. A shared helper that shows the first 4 and last 4 characters separated by ellipsis (e.g. GABC...XY12) should be used consistently across all address displays.
Scope
- Add
shortenAddress(address: string): string utility
- Return first 4 +
... + last 4 characters
- Return the full address unchanged if it is shorter than 10 characters
- Add unit tests for: standard length, short address, empty string guard
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
Full Stellar wallet addresses are too long to display in the UI. A shared helper that shows the first 4 and last 4 characters separated by ellipsis (e.g.
GABC...XY12) should be used consistently across all address displays.Scope
shortenAddress(address: string): stringutility...+ last 4 charactersAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram