Commit 720c6116 authored by Matthew Slipper's avatar Matthew Slipper

Convert balances to decimal rather than hex

parent ac687276
...@@ -287,6 +287,9 @@ def convert_anvil_dump(dump): ...@@ -287,6 +287,9 @@ def convert_anvil_dump(dump):
accounts = dump['accounts'] accounts = dump['accounts']
for account in accounts.values(): for account in accounts.values():
bal = account['balance']
account['balance'] = str(int(bal, 16))
if 'storage' in account: if 'storage' in account:
storage = account['storage'] storage = account['storage']
storage_keys = list(storage.keys()) storage_keys = list(storage.keys())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment