wallet: better wallet.send outputs error
This commit is contained in:
parent
c64ccf215e
commit
a2bf18ff18
@ -1244,7 +1244,7 @@ class Wallet extends EventEmitter {
|
|||||||
const mtx = new MTX();
|
const mtx = new MTX();
|
||||||
|
|
||||||
assert(Array.isArray(outputs), 'Outputs must be an array.');
|
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
|
// Add the outputs
|
||||||
for (const obj of outputs) {
|
for (const obj of outputs) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user