@polkadot/util
Advanced tools
Comparing version 0.18.2 to 0.18.3
@@ -9,5 +9,2 @@ 'use strict'; | ||
var _require = require('./constants'), | ||
ZEROS_256 = _require.ZEROS_256; | ||
/** | ||
@@ -26,4 +23,2 @@ @name hexFixLength | ||
*/ | ||
module.exports = function hexFixLength(value) { | ||
@@ -44,3 +39,3 @@ var bitLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1; | ||
return hexAddPrefix(('' + ZEROS_256 + hexStripPrefix(value)).slice(-1 * strLength)); | ||
return hexAddPrefix(('' + '0'.repeat(strLength) + hexStripPrefix(value)).slice(-1 * strLength)); | ||
}; |
{ | ||
"name": "@polkadot/util", | ||
"version": "0.18.2", | ||
"version": "0.18.3", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
145472
188
1391