Skip to content

hexStripZeros

hexStripZeros(value): string

Defined in: utils/bytes.ts:578

Strips the leading zeros from a value and returns it as a hex string

Parameters

value

BytesLike

the value to strip zeros from

Returns

string

a hex string representation of the value, without leading zeros

Example

hexStripZeros([0,0,0,48]);
// '0x30'