buildStack, and make tests pass

This commit is contained in:
Thomas Kerin 2016-12-22 13:18:45 +01:00 committed by Daniel Cousens
parent a793166eb8
commit b6ae10b2f1
2 changed files with 72 additions and 61 deletions

View file

@ -61,7 +61,10 @@ describe('script-templates', function () {
describe(name + '.input.check', function () {
fixtures.valid.forEach(function (f) {
var expected = name.toLowerCase() === f.type
// Temporary - while we don't have witnessKeyHash.input, etc.
if (name.toLowerCase() === bscript.types.P2WPKH) return
if (name.toLowerCase() === bscript.types.P2WSH) return
var expected = name.toLowerCase() === f.type.toLowerCase()
if (inputType && f.input) {
var input = bscript.fromASM(f.input)