Skip to content

Move shortening address logic to a generic lib (schemas maybe) #171

@kevinszuchet

Description

@kevinszuchet

Example from the account dApp:

export function shortening(address: string): string {
  return address ? `${address.slice(0, 4)}...${address.slice(-4)}` : ''
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions