Transaction: fix setWitness to accept array of Buffers (fixed)
This commit is contained in:
parent
0c198ffa6a
commit
29422b584d
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ Transaction.prototype.setInputScript = function (index, scriptSig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Transaction.prototype.setWitness = function (index, witness) {
|
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
|
this.ins[index].witness = witness
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue