feat: change generated addresses to be UA
This commit is contained in:
parent
d5ddf5f74f
commit
60d7f3d8de
2 changed files with 5 additions and 1 deletions
|
|
@ -93,7 +93,10 @@ function sendCoins (account, tx, settings, operatorId) {
|
|||
|
||||
function newAddress (account, info, tx, settings, operatorId) {
|
||||
return checkCryptoCode(info.cryptoCode)
|
||||
.then(() => fetch('getnewaddress'))
|
||||
.then(() => fetch('z_listaccounts'))
|
||||
.then(accountsRes => _.size(accountsRes) === 0 ? fetch('z_getnewaccount') : Promise.resolve(_.first(accountsRes)))
|
||||
.then(account => fetch('z_getaddressforaccount', [account.account]))
|
||||
.then(res => res.address)
|
||||
}
|
||||
|
||||
function addressBalance (address, confs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue