@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utxo.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psf/bch-js",
3
- "version": "4.20.27",
3
+ "version": "4.20.28",
4
4
  "description": "The FullStack.cash JavaScript library for Bitcoin Cash and SLP Tokens",
5
5
  "author": "Chris Troutner <chris.troutner@gmail.com>",
6
6
  "contributors": [
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