diff --git a/packages/bitcore-lib-ltc/lib/util/buffer.js b/packages/bitcore-lib-ltc/lib/util/buffer.js index 1c8217ade22..04592b6f971 100644 --- a/packages/bitcore-lib-ltc/lib/util/buffer.js +++ b/packages/bitcore-lib-ltc/lib/util/buffer.js @@ -163,7 +163,7 @@ module.exports = { * @return {Buffer} */ hexToBuffer: function hexToBuffer(string) { - assert(js.isHexa(string)); + assert(js.isHexa(string) || ('' === string)); return Buffer.from(string, 'hex'); } };