Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account.balance(asset_id) always returns 0 #275

Closed
biobdeveloper opened this issue Feb 8, 2020 · 1 comment
Closed

Account.balance(asset_id) always returns 0 #275

biobdeveloper opened this issue Feb 8, 2020 · 1 comment

Comments

@biobdeveloper
Copy link

Here is a bug. If you request balance via Asset class or Asset.symbol, all is ok, but when request it via "1.3.id" always returns 0

>>from bitshares.account import Account
>>from bitshares.asset import Asset
>>account = Account('xeroc')
>>account.balance('BTS') == account.balance('1.3.0')
False
>>account.balance('BTS')
637.83586 BTS
>>account.balance('1.3.0')
0.00000 BTS

Also this

>>asset = Asset('BTS')
>>account.balance(asset) == account.balance(asset.identifier)
False
>>account.balance(asset)
637.83586 BTS
>>account.balance(asset.identifier)
0.00000 BTS

>>account.balance('1.3.0') == 0
True
@xeroc
Copy link
Member

xeroc commented Feb 18, 2020

fixed in python-graphenelib

xeroc added a commit to xeroc/python-graphenelib that referenced this issue Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants