Update index.html
This commit is contained in:
1 parent
38c04ab674
commit
af613477b1
1 file changed
+2
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user