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

Function hexlifyByte

lib.commonjs/utils/rlp-decode.js:8–14  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6const errors_js_1 = require("./errors.js");
7const data_js_2 = require("./data.js");
8function hexlifyByte(value) {
9 let result = value.toString(16);
10 while (result.length < 2) {
11 result = "0" + result;
12 }
13 return "0x" + result;
14}
15function unarrayifyInteger(data, offset, length) {
16 let result = 0;
17 for (let i = 0; i < length; i++) {

Callers 1

_decodeFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected