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