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

Function hexlifyByte

lib.esm/utils/rlp-decode.js:5–11  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3import { assert, assertArgument } from "./errors.js";
4import { getBytes } from "./data.js";
5function hexlifyByte(value) {
6 let result = value.toString(16);
7 while (result.length < 2) {
8 result = "0" + result;
9 }
10 return "0x" + result;
11}
12function unarrayifyInteger(data, offset, length) {
13 let result = 0;
14 for (let i = 0; i < length; i++) {

Callers 1

_decodeFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected