From 0e0a12da279d501a7c2a10b0480ab664e52cea5c Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 16 Mar 2015 13:53:28 +1100 Subject: [PATCH] txbuilder: fix #374 null inputs --- src/transaction_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index f860f95..f4d9923 100644 --- a/src/transaction_builder.js +++ b/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) })