mirror of
https://git.wownero.com/lza_menace/tg-bot.git
synced 2024-08-15 00:23:12 +00:00
making cli commands better
This commit is contained in:
parent
1edeaadda4
commit
7b98ee33a3
2 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ class Wallet(object):
|
|||
|
||||
def accounts(self):
|
||||
_accounts = self.make_wallet_rpc('get_accounts')
|
||||
return [i['account_index'] for i in _accounts['subaddress_accounts']]
|
||||
return [(i['account_index'], i['base_address']) for i in _accounts['subaddress_accounts']]
|
||||
|
||||
def new_account(self, label=None):
|
||||
_account = self.make_wallet_rpc('create_account', {'label': label})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue