mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add mock tests for accounts, addresses and balance.
Add method for getting a single balance.
This commit is contained in:
parent
5e96380d7b
commit
56d7443616
5 changed files with 138 additions and 6 deletions
|
@ -49,7 +49,7 @@ class JSONRPC(object):
|
|||
addresses[_addr['address_index']] = address(_addr['address'])
|
||||
return addresses
|
||||
|
||||
def get_balance(self, account=0):
|
||||
def get_balances(self, account=0):
|
||||
_balance = self.raw_request('getbalance', {'account_index': account})
|
||||
return (from_atomic(_balance['balance']), from_atomic(_balance['unlocked_balance']))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue