testing/p2wsh: add missing test case coverage

This commit is contained in:
Daniel Cousens 2018-07-17 15:22:03 +10:00
parent 275b872c7e
commit 14d9636b6e
4 changed files with 51 additions and 6 deletions

View file

@ -99,7 +99,7 @@ function preform (x) {
if (typeof x.redeem.input === 'string') x.redeem.input = asmToBuffer(x.redeem.input)
if (typeof x.redeem.output === 'string') x.redeem.output = asmToBuffer(x.redeem.output)
if (Array.isArray(x.redeem.witness)) x.redeem.witness = x.redeem.witness.map(fromHex)
x.redeem.network = bnetworks[x.redeem.network] || x.network || bnetworks.bitcoin
if (x.redeem.network) x.redeem.network = bnetworks[x.redeem.network]
}
return x