integration: throw meaningful errors if no unspent is found
This commit is contained in:
parent
845c1dc199
commit
3be5dc88a1
2 changed files with 10 additions and 2 deletions
test/integration
|
@ -51,6 +51,7 @@ describe('bitcoinjs-lib (multisig)', function () {
|
|||
|
||||
// use the oldest unspent
|
||||
var unspent = unspents.pop()
|
||||
if (!unspent) throw new Error('Faucet didn\'t provide an unspent')
|
||||
|
||||
// make a random destination address
|
||||
var targetAddress = bitcoin.ECPair.makeRandom({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue