@ethereumjs/util / short
short(
bytes,maxLength):string
Defined in: packages/util/src/bytes.ts:341
Shortens a string or Uint8Array’s hex string representation to maxLength (default 50).
Examples:
Input: ‘657468657265756d000000000000000000000000000000000000000000000000’ Output: ‘657468657265756d0000000000000000000000000000000000…’
string |
Uint8Array<ArrayBufferLike> |
number = 50
string