@psf/bch-js 4.20.27 → 4.20.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utxo.js +4 -0
package/package.json
CHANGED
package/src/utxo.js
CHANGED
|
@@ -183,6 +183,10 @@ class UTXO {
|
|
|
183
183
|
*/
|
|
184
184
|
async get (address, useWhitelist = false) {
|
|
185
185
|
try {
|
|
186
|
+
if (!address) {
|
|
187
|
+
throw new Error('Address must be an array or a string')
|
|
188
|
+
}
|
|
189
|
+
|
|
186
190
|
// Convert address to an array if it is a string.
|
|
187
191
|
if (typeof address === 'string') address = [address]
|
|
188
192
|
|