注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
function zeroPadBytes(data, length): string
Return the DataHexString | DataHexString of data padded on the right to length bytes. If data already exceeds %%length%%, a BufferOverrunError is thrown. This pads data the same as bytes are in Solidity (e.g. bytes16).

Parameters

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

Returns

string The padded data.

Source

utils/data.ts:267