Merge pull request #1164 from ConsenSys/jsonv2_format_fix

Format account balance as hex string
pull/1165/head
Bernhard Mueller 5 years ago committed by GitHub
commit 61a17633f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/analysis/solver.py

@ -133,7 +133,7 @@ def _get_concrete_state(initial_accounts: Dict, min_price_dict: Dict[str, int]):
data["nonce"] = account.nonce
data["code"] = account.code.bytecode
data["storage"] = str(account.storage)
data["balance"] = min_price_dict.get(address, 0)
data["balance"] = hex(min_price_dict.get(address, 0))
accounts[hex(address)] = data
return {"accounts": accounts}

Loading…
Cancel
Save