hive-p2p 1.0.113 → 1.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/services/converter.mjs
CHANGED
|
@@ -88,8 +88,6 @@ export class Converter {
|
|
|
88
88
|
// BASE58
|
|
89
89
|
/** @param {number} num - Unsigned integer 4bytes to convert to Base58 string @param {number} [minLength] - Minimum length of the output string, padded with '1', default: 6 */
|
|
90
90
|
static uint32ToB58(num, minLength = 6) {
|
|
91
|
-
if (num === 0) return '1';
|
|
92
|
-
|
|
93
91
|
let result = '';
|
|
94
92
|
while (num > 0) {
|
|
95
93
|
result = base58AlphabetArray[num % 58] + result;
|