Skip to content

Commit

Permalink
Merge pull request #256 from sCrypt-Inc/upbsv
Browse files Browse the repository at this point in the history
mirror fix
  • Loading branch information
zhfnjust authored Dec 5, 2023
2 parents d41b2fe + 6da72cf commit 5720211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/bsv/lib/transaction/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5720211

Please sign in to comment.