ensures that pubKey length is greater than m
ensure that pubKey length is greater than m use Array.isArray over instanceof error message
This commit is contained in:
parent
4dd617d5ca
commit
343289229e
2 changed files with 6 additions and 0 deletions
test
|
@ -120,6 +120,10 @@ describe('Script', function() {
|
|||
|
||||
assert.equal(multisigAddress.toString(), '32vYjxBb7pHJJyXgNk8UoK3BdRDxBzny2v')
|
||||
})
|
||||
|
||||
it('should throw on not enough pubKeys provided', function() {
|
||||
assert.throws(function() {Script.createMultisigScriptPubKey(4, pubKeys)}, /Not enough pubKeys provided/)
|
||||
})
|
||||
})
|
||||
|
||||
describe('2-of-2 Multisig scriptSig', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue