From 52745d1d0c2d32fd80f78db41a6321ba2a215b06 Mon Sep 17 00:00:00 2001 From: Thomas Kerin Date: Tue, 3 Jan 2017 17:45:08 +0100 Subject: [PATCH] fromTransaction.build tests pass - look for segwit transaction vectors --- src/transaction_builder.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 40d910e..146b38c 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -38,8 +38,6 @@ function extractChunks (type, chunks, script) { return chunk.length === 0 ? undefined : chunk }) break - default: - throw new Error('Only bare scripts can be handled here: not ', type) } return { pubKeys: pubKeys, @@ -142,10 +140,6 @@ function expandInput (scriptSig, witnessStack) { chunks = scriptSigChunks } - if (SIGNABLE.indexOf(scriptType) === -1) { - throw new Error(scriptType + ' not supported') - } - var expanded = extractChunks(scriptType, chunks, script) var result = {