diff --git a/patches/bsv/lib/transaction/input/input.js b/patches/bsv/lib/transaction/input/input.js index 19686d8..d075bdc 100644 --- a/patches/bsv/lib/transaction/input/input.js +++ b/patches/bsv/lib/transaction/input/input.js @@ -218,7 +218,7 @@ Input.prototype.getPreimage = function (transaction, inputIndex, sigtype, isLowS $.checkState(this.output instanceof Output) sigtype = sigtype || (Signature.SIGHASH_ALL | Signature.SIGHASH_FORKID) isLowS = isLowS || false - var subscript = typeof csIdx === 'number' ? this.output.script.subscript(csIdx) : this.output.script + var subscript = typeof csIdx === 'number' ? this.output.script.subScript(csIdx) : this.output.script return isLowS ? getLowSPreimage(transaction, sigtype, inputIndex, subscript, this.output.satoshisBN) : Sighash.sighashPreimage(transaction, sigtype, inputIndex, subscript, this.output.satoshisBN)