MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / formatFrAsString

Function formatFrAsString

playground/src/utils/conversion.ts:1–3  ·  view source on GitHub ↗
(addressAsString: string, sliceLength: number = 4)

Source from the content-addressed store, hash-verified

1export const formatFrAsString = (addressAsString: string, sliceLength: number = 4) => {
2 return `${addressAsString.slice(0, sliceLength + 2)}...${addressAsString.slice(-sliceLength)}`;
3};

Callers 7

ContractComponentFunction · 0.90
CreateAuthwitDialogFunction · 0.90
FunctionParameterFunction · 0.90
TxPanelFunction · 0.90
AccountSelectorFunction · 0.90
ContractSelectorFunction · 0.90

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected