Transaction: fix setWitness to accept array of Buffers (fixed)

This commit is contained in:
Daniel Cousens 2016-11-14 13:40:06 +11:00 committed by Daniel Cousens
parent 0c198ffa6a
commit 29422b584d

View file

@ -460,7 +460,7 @@ Transaction.prototype.setInputScript = function (index, scriptSig) {
}
Transaction.prototype.setWitness = function (index, witness) {
typeforce(types.tuple(types.Number, types.Buffer), arguments)
typeforce(types.tuple(types.Number, [types.Buffer]), arguments)
this.ins[index].witness = witness
}