Browse Source

txbuilder: fix #374 null inputs

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

2
src/transaction_builder.js

@ -113,7 +113,7 @@ TransactionBuilder.fromTransaction = function (transaction) {
assert(!Transaction.isCoinbaseHash(txIn.hash), 'coinbase inputs not supported')
// Ignore empty scripts
if (txIn.script.buffer.length === 0) return
if (txIn.script.buffer.length === 0) return {}
return extractInput(txIn)
})

Loading…
Cancel
Save