Update btcOperator.js

This commit is contained in:
Sai Raj 2023-01-21 03:13:28 +05:30 committed by GitHub
parent b9a0cc27e1
commit 54edb63d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
(function (EXPORTS) { //btcOperator v1.0.14b
(function (EXPORTS) { //btcOperator v1.0.14c
/* BTC Crypto and API Operator */
const btcOperator = EXPORTS;
@ -308,7 +308,7 @@
parameters.privkeys[i] = coinjs.privkey2wif(key);
});
if (invalids.length)
throw "Invalid keys:" + invalids;
throw "Invalid private key for address:" + invalids;
}
//receiver-ids (and change-id)
if (!Array.isArray(parameters.receivers))
@ -744,4 +744,4 @@
.catch(error => reject(error))
});
})('object' === typeof module ? module.exports : window.btcOperator = {});
})('object' === typeof module ? module.exports : window.btcOperator = {});