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

Function arrayifyInteger

lib.commonjs/utils/rlp-encode.js:6–13  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4exports.encodeRlp = void 0;
5const data_js_1 = require("./data.js");
6function arrayifyInteger(value) {
7 const result = [];
8 while (value) {
9 result.unshift(value & 0xff);
10 value >>= 8;
11 }
12 return result;
13}
14function _encode(object) {
15 if (Array.isArray(object)) {
16 let payload = [];

Callers 1

_encodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected