(hexString)
| 3 | */ |
| 4 | import { getBytesCopy, assertArgument, toUtf8Bytes } from "../utils/index.js"; |
| 5 | export function looseArrayify(hexString) { |
| 6 | if (typeof (hexString) === "string" && !hexString.startsWith("0x")) { |
| 7 | hexString = "0x" + hexString; |
| 8 | } |
| 9 | return getBytesCopy(hexString); |
| 10 | } |
| 11 | export function zpad(value, length) { |
| 12 | value = String(value); |
| 13 | while (value.length < length) { |
no test coverage detected