tests: move TxBuilder.sign tests to fixtures
This commit is contained in:
parent
396e4d4235
commit
b048627a59
3 changed files with 147 additions and 72 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue