txbuilder: fix #374 null inputs
This commit is contained in:
parent
2fc4cc31c9
commit
ca4a0c125f
@ -112,7 +112,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…
Reference in New Issue
Block a user