Utils
toBeHex
Converts value
to a Big Endian hexstring, optionally padded to width
bytes.
Parameters
Parameter | Type | Description |
---|---|---|
_value | BigNumberish | The value to convert. |
_width ? | Numeric | The width of the value in bytes. |
Returns
string
The hexstring.
Throws
If the value exceeds the width.