Browse Source

Merge pull request #166 from bitcoinjs/remove-isfinite-check

Remove Number.isFinite check on tx input index
hk-custom-address
Daniel Cousens 11 years ago
parent
commit
763e7376e9
  1. 2
      src/transaction.js

2
src/transaction.js

@ -361,7 +361,7 @@ Transaction.prototype.signWithKeys = function(keys, outputs, type) {
Transaction.prototype.signScriptSig = function(index, script, key, type) {
type = type || SIGHASH_ALL
assert(Number.isFinite(index) && (index >= 0), 'Invalid vin index')
assert((index >= 0), 'Invalid vin index')
assert(script instanceof Script, 'Invalid Script object')
assert(key instanceof ECKey, 'Invalid private key')
// assert.equal(type & 0x7F, type, 'Invalid type') // TODO

Loading…
Cancel
Save