Script: fixes pubKeyInput and adds a test
This commit is contained in:
parent
9d5d18b2d8
commit
b68b1d5da4
3 changed files with 27 additions and 6 deletions
src
|
@ -139,7 +139,7 @@ function multisigOutput(m, pubKeys) {
|
|||
function pubKeyInput(signature) {
|
||||
assert(Buffer.isBuffer(signature), 'Expected Buffer, got ' + signature)
|
||||
|
||||
return Script.fromChunks(signature)
|
||||
return Script.fromChunks([signature])
|
||||
}
|
||||
|
||||
// {signature} {pubKey}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue