From 2d906f65cc58e2b90ea75df97021342e937a1fcf Mon Sep 17 00:00:00 2001 From: Sergey Ukustov Date: Mon, 14 Jan 2019 13:16:42 +0300 Subject: [PATCH] Empty witness is empty string --- lib/script/witness.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/script/witness.js b/lib/script/witness.js index 632377327..c4ed87a3b 100644 --- a/lib/script/witness.js +++ b/lib/script/witness.js @@ -433,7 +433,7 @@ class Witness extends Stack { toJSON() { let result = this.toRaw().toString('hex'); if (result === '00') { - result = null; + result = ''; } return result; }