bit icon indicating copy to clipboard operation
bit copied to clipboard

key.get_balance() and key.balance discrepancy

Open hasanatkazmi opened this issue 7 years ago • 1 comments

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

hasanatkazmi avatar Oct 10 '18 06:10 hasanatkazmi

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.

ghost avatar Oct 12 '18 04:10 ghost