Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qu.ai/llms.txt

Use this file to discover all available pages before exploring further.

function zeroPadValue(data, length): string
Return the DataHexString | DataHexString of data padded on the left to length bytes. If data already exceeds length, a BufferOverrunError is thrown. This pads data the same as values are in Solidity (e.g. uint128).

Parameters

ParameterTypeDescription
dataBytesLikeThe data to pad.
lengthnumberThe length to pad to.

Returns

string The padded data.

Source

utils/data.ts:251