diff --git a/src/templates/scripthash/input.js b/src/templates/scripthash/input.js index 04e3874..81fe8b3 100644 --- a/src/templates/scripthash/input.js +++ b/src/templates/scripthash/input.js @@ -21,8 +21,8 @@ function check (script, allowIncomplete) { var inputType = bscript.classifyInput(scriptSigChunks, allowIncomplete) var outputType = bscript.classifyOutput(redeemScriptChunks) - if (chunks.length === 1 && (outputType === bscript.types.P2WSH || outputType === bscript.types.P2WPKH)) { - return true + if (chunks.length === 1) { + return outputType === bscript.types.P2WSH || outputType === bscript.types.P2WPKH } return inputType === outputType