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 = {