MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / zeroPadValue

Function zeroPadValue

lib.commonjs/utils/data.js:166–168  ·  view source on GitHub ↗

* Return the [[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``).

(data, length)

Source from the content-addressed store, hash-verified

164 * (e.g. ``uint128``).
165 */
166function zeroPadValue(data, length) {
167 return zeroPad(data, length, true);
168}
169exports.zeroPadValue = zeroPadValue;
170/**
171 * Return the [[DataHexString]] of %%data%% padded on the **right**

Callers

nothing calls this directly

Calls 1

zeroPadFunction · 0.70

Tested by

no test coverage detected