1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.nToHex = nToHex;
|
7 |
|
8 | var _spread = require("../object/spread");
|
9 |
|
10 | var _u8a = require("../u8a");
|
11 |
|
12 | var _toU8a = require("./toU8a");
|
13 |
|
14 |
|
15 |
|
16 | const ZERO_STR = '0x00';
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | function nToHex(value, options) {
|
23 | return !value ? ZERO_STR : (0, _u8a.u8aToHex)((0, _toU8a.nToU8a)(value, (0, _spread.objectSpread)(
|
24 | {
|
25 | isLe: false,
|
26 | isNegative: false
|
27 | }, options)));
|
28 | } |
\ | No newline at end of file |