From 6da72cf05d2d55e1117d8d502922f508e1e692cb Mon Sep 17 00:00:00 2001 From: hh Date: Mon, 4 Dec 2023 22:48:18 +0800 Subject: [PATCH] mirror fix --- patches/bsv/lib/transaction/input/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)