BUG: balance returns different types

This commit is contained in:
Victor Grau Serrat
2018-02-02 12:06:57 -07:00
parent db4ee4c01e
commit 9ef000e529
+4 -1
View File
@@ -240,7 +240,10 @@ class Marketplace:
address[2:])
})
balance = int(balance[2:], 16) // 10 ** 8
try:
balance = int(balance[2:], 16) // 10 ** 8
except ValueError:
balance = int(bin_hex(balance), 16) // 10 ** 8
if balance > price:
print('OK.')