* Returns %%value%% as a bigint, validating it is valid as a bigint * value and that it is positive.
(value, name)
| 101 | * value and that it is positive. |
| 102 | */ |
| 103 | function 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 | } |
| 110 | exports.getUint = getUint; |
| 111 | const Nibbles = "0123456789abcdef"; |
| 112 | /* |