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

key.get_balance() and key.balance discrepancy #50

Open
hasanatkazmi opened this issue Oct 10, 2018 · 1 comment
Open

key.get_balance() and key.balance discrepancy #50

hasanatkazmi opened this issue Oct 10, 2018 · 1 comment

Comments

@hasanatkazmi
Copy link

key.get_balance() returns string type while key.balance returns int.

@ghost
Copy link

ghost commented Oct 12, 2018

I can't even recall what get_balance() returns, off the top of my head. Generally though it best to do get_balance() and then refer to .balance.

But yes, sounds like this can be improved.

Hmm, maybe I'm thinking of get_unspents(). Fix for this should be trivial if get_balance() calls that, then returns the balance.

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

1 participant