mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
10 lines
198 B
Go
10 lines
198 B
Go
package ui
|
|
|
|
// Helper function to shorten address
|
|
func shortenAddress(address string) string {
|
|
if len(address) <= 20 {
|
|
return address
|
|
}
|
|
return address[:16] + "..." + address[len(address)-4:]
|
|
}
|