Update index.html

This commit is contained in:
supertestnet authored and GitHub committed 2024-12-30 01:04:29 -05:00
1 parent 38c04ab674
commit af613477b1
1 file changed
+2
+2
View File
@@ -882,6 +882,8 @@
var script = input.witness[ input.witness.length - 2 ];
var params = [];
input.witness.forEach( ( element, element_index ) => {
if ( element === "OP_0" || element === "OP_FALSE" || element === "" ) element = 0;
if ( element === "OP_1" || element === "OP_TRUE" ) element = 1;
if ( element_index < input.witness.length - 2 ) params.push( element );
});
var script_as_asm = tapscript.Script.fmt.toAsm( script );