Browse Source

TxBuilder: fix equals is undefined in Node 0.10

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
c06df2df8a
  1. 2
      src/transaction_builder.js

2
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')

Loading…
Cancel
Save