edge-currency-plugins 1.0.0-rc.4 → 1.0.0-rc.5

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.
@@ -286,7 +286,10 @@ var _utils = require('./utils');
286
286
  await _asyncNullishCoalesce(await _asyncOptionalChain([options, 'optionalAccess', async _6 => _6.utxos]), async () => (
287
287
  ((await processor.fetchUtxos({ utxoIds: [] })) )))
288
288
 
289
- if (bs.gt(totalAmountToSend, `${_utils.sumUtxos.call(void 0, utxos)}`)) {
289
+ if (
290
+ bs.gt(totalAmountToSend, `${_utils.sumUtxos.call(void 0, utxos)}`) ||
291
+ utxos.length === 0
292
+ ) {
290
293
  throw new (0, _types.InsufficientFundsError)(currencyInfo.currencyCode)
291
294
  }
292
295
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edge-currency-plugins",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
5
5
  "repository": "https://github.com/EdgeApp/edge-currency-plugins",
6
6
  "license": "MIT",