wallet: better wallet.send outputs error

This commit is contained in:
Matthew Zipkin 2019-01-08 15:35:13 -08:00
parent c64ccf215e
commit a2bf18ff18
No known key found for this signature in database
GPG Key ID: E7E2984B6289C93A

View File

@ -1244,7 +1244,7 @@ class Wallet extends EventEmitter {
const mtx = new MTX();
assert(Array.isArray(outputs), 'Outputs must be an array.');
assert(outputs.length > 0, 'No outputs available.');
assert(outputs.length > 0, 'At least one output required.');
// Add the outputs
for (const obj of outputs) {