tests: move TxBuilder.sign tests to fixtures

This commit is contained in:
Daniel Cousens 2015-01-06 11:18:04 +11:00
parent 396e4d4235
commit b048627a59
3 changed files with 147 additions and 72 deletions

View file

@ -239,6 +239,7 @@ TransactionBuilder.prototype.sign = function(index, privKey, redeemScript, hashT
scriptType = scripts.classifyOutput(redeemScript)
assert.notEqual(scriptType, 'scripthash', 'RedeemScript can\'t be P2SH')
assert.notEqual(scriptType, 'nulldata', 'RedeemScript not supported (nulldata)')
assert.notEqual(scriptType, 'nonstandard', 'RedeemScript not supported (nonstandard)')
hash = this.tx.hashForSignature(index, redeemScript, hashType)