참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function toBeHex(_value, _width?): string
Converts value to a Big Endian hexstring, optionally padded to width bytes.

Parameters

ParameterTypeDescription
_valueBigNumberishThe value to convert.
_width?NumericThe width of the value in bytes.

Returns

string The hexstring.

Throws

If the value exceeds the width.

Source

utils/maths.ts:256