fix: small fixes
This commit is contained in:
parent
ffdab69ce0
commit
157137afc0
2 changed files with 2 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue