mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 04:18:14 +08:00
BUG: balance returns different types
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user