There was an error while loading. Please reload this page.
1 parent 1d16859 commit e4db4a0Copy full SHA for e4db4a0
src/templates/scripthash/input.js
@@ -21,8 +21,8 @@ function check (script, allowIncomplete) {
21
22
var inputType = bscript.classifyInput(scriptSigChunks, allowIncomplete)
23
var outputType = bscript.classifyOutput(redeemScriptChunks)
24
- if (chunks.length === 1 && (outputType === bscript.types.P2WSH || outputType === bscript.types.P2WPKH)) {
25
- return true
+ if (chunks.length === 1) {
+ return outputType === bscript.types.P2WSH || outputType === bscript.types.P2WPKH
26
}
27
28
return inputType === outputType
0 commit comments