fromTransaction.build tests pass - look for segwit transaction vectors

This commit is contained in:
Thomas Kerin 2017-01-03 17:45:08 +01:00 committed by Daniel Cousens
parent f8a94f3496
commit 52745d1d0c

View file

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