fix: zcash version
This commit is contained in:
parent
d78e7bb18c
commit
5c18dbca9a
2 changed files with 1 additions and 9 deletions
|
|
@ -91,14 +91,6 @@ function sendCoins (account, tx, settings, operatorId) {
|
|||
.catch(errorHandle)
|
||||
}
|
||||
|
||||
function defaultAddress (account, info, tx, settings, operatorId) {
|
||||
return checkCryptoCode(info.cryptoCode)
|
||||
.then(() => fetch('z_listaccounts'))
|
||||
.then(accountsRes => _.isEmpty(accountsRes) ? fetch('z_getnewaccount') : Promise.resolve(_.first(accountsRes)))
|
||||
.then(account => fetch('z_getaddressforaccount', [account.account, [], 0]))
|
||||
.then(res => res.address)
|
||||
}
|
||||
|
||||
function newAddress (account, info, tx, settings, operatorId) {
|
||||
return checkCryptoCode(info.cryptoCode)
|
||||
.then(() => fetch('getnewaddress'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue