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

Function getUint

lib.commonjs/utils/maths.js:103–109  ·  view source on GitHub ↗

* Returns %%value%% as a bigint, validating it is valid as a bigint * value and that it is positive.

(value, name)

Source from the content-addressed store, hash-verified

101 * value and that it is positive.
102 */
103function getUint(value, name) {
104 const result = getBigInt(value, name);
105 (0, errors_js_1.assert)(result >= BN_0, "unsigned value cannot be negative", "NUMERIC_FAULT", {
106 fault: "overflow", operation: "getUint", value
107 });
108 return result;
109}
110exports.getUint = getUint;
111const Nibbles = "0123456789abcdef";
112/*

Callers 4

fromTwosFunction · 0.70
maskFunction · 0.70
toBeHexFunction · 0.70
toBeArrayFunction · 0.70

Calls 1

getBigIntFunction · 0.70

Tested by

no test coverage detected