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

Function looseArrayify

src.ts/wallet/utils.ts:9–14  ·  view source on GitHub ↗
(hexString: string)

Source from the content-addressed store, hash-verified

7} from "../utils/index.js";
8
9export function looseArrayify(hexString: string): Uint8Array {
10 if (typeof(hexString) === "string" && !hexString.startsWith("0x")) {
11 hexString = "0x" + hexString;
12 }
13 return getBytesCopy(hexString);
14}
15
16export function zpad(value: String | number, length: number): String {
17 value = String(value);

Callers 1

spelunkFunction · 0.70

Calls 1

getBytesCopyFunction · 0.90

Tested by

no test coverage detected