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
Section titled “Parameters”the value to strip zeros from
Returns
Section titled “Returns”string
a hex string representation of the value, without leading zeros
Example
Section titled “Example”hexStripZeros([0,0,0,48]);// '0x30'