GolosChain / golos-python

Official Python Library for Golos Blockchain
MIT License
3 stars 4 forks source link

get_balances() tries to access unexisting field "rewards" #19

Open bitphage opened 6 years ago

bitphage commented 6 years ago

Golos does not have field "rewards" in account object balances.

% ./get_balance.py vvk
Traceback (most recent call last):
  File "./get_balance.py", line 38, in <module>
    main()
  File "./get_balance.py", line 29, in main
    b = a.get_balances()
  File "/home/vvk/devel/golos/golos-scripts/venv/lib/python3.6/site-packages/steem/account.py", line 93, in get_balances
    sum([available['GOLOS'], savings['GOLOS'], rewards['GOLOS']]),
NameError: name 'rewards' is not defined