Skip to content

Commit

Permalink
Empty witness is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv authored Jan 14, 2019
1 parent 6815d3f commit 2d906f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/script/witness.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class Witness extends Stack {
toJSON() {
let result = this.toRaw().toString('hex');
if (result === '00') {
result = null;
result = '';
}
return result;
}
Expand Down

0 comments on commit 2d906f6

Please sign in to comment.