openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

listAccounts returns an array instead of an object on new wallet #47

Open whphhg opened 6 years ago

whphhg commented 6 years ago

listaccounts RPC is returning an Array [0] if the wallet has no accounts assigned. Once an account is assigned it correctly returns an Object { "": 0, "assignedAcc": 0 }.