TxBuilder: fix undefined scriptSig

Fixed and typeForce used to enforce this wont happen again in future.
This commit is contained in:
Daniel Cousens 2015-02-05 14:33:31 +11:00
parent 3a371fccec
commit a788214921
2 changed files with 11 additions and 5 deletions

View file

@ -308,6 +308,9 @@ Transaction.prototype.toHex = function() {
}
Transaction.prototype.setInputScript = function(index, script) {
typeForce('Number', index)
typeForce('Script', script)
this.ins[index].script = script
}