diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 080363e..465c661 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -305,7 +305,7 @@ TransactionBuilder.prototype.sign = function (index, keyPair, redeemScript, hash if (canSign) { // if redeemScript was provided, enforce consistency if (redeemScript) { - if (!input.redeemScript.equals(redeemScript)) throw new Error('Inconsistent redeemScript') + if (!bufferutils.equal(input.redeemScript, redeemScript)) throw new Error('Inconsistent redeemScript') } if (input.hashType !== hashType) throw new Error('Inconsistent hashType')