From 157137afc0dadd1323756e063af5bfadcd4a74ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 18 Apr 2022 15:23:59 +0100 Subject: [PATCH] fix: small fixes --- lib/blockchain/common.js | 2 +- lib/plugins/wallet/zcashd/zcashd.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blockchain/common.js b/lib/blockchain/common.js index 8d8eba90..96524f34 100644 --- a/lib/blockchain/common.js +++ b/lib/blockchain/common.js @@ -31,7 +31,7 @@ const BINARIES = { dir: 'geth-linux-amd64-1.10.17-25c9b49f' }, ZEC: { - url: 'https://download.z.cash/downloads//zcash-4.7.0-linux64-debian-bullseye.tar.gz', + url: 'https://download.z.cash/downloads/zcash-4.7.0-linux64-debian-bullseye.tar.gz', dir: 'zcash-4.7.0/bin' }, DASH: { diff --git a/lib/plugins/wallet/zcashd/zcashd.js b/lib/plugins/wallet/zcashd/zcashd.js index 8a9afb17..1be3a45f 100644 --- a/lib/plugins/wallet/zcashd/zcashd.js +++ b/lib/plugins/wallet/zcashd/zcashd.js @@ -94,7 +94,7 @@ function sendCoins (account, tx, settings, operatorId) { function newAddress (account, info, tx, settings, operatorId) { return checkCryptoCode(info.cryptoCode) .then(() => fetch('z_listaccounts')) - .then(accountsRes => _.size(accountsRes) === 0 ? fetch('z_getnewaccount') : Promise.resolve(_.first(accountsRes))) + .then(accountsRes => _.isEmpty(accountsRes) ? fetch('z_getnewaccount') : Promise.resolve(_.first(accountsRes))) .then(account => fetch('z_getaddressforaccount', [account.account])) .then(res => res.address) }