Add optional address argument to load_from_bytecode

pull/756/head
Bernhard Mueller 6 years ago
parent 81404008ed
commit a502e92185
  1. 4
      mythril/mythril.py
  2. 4
      tests/mythril_dir/config.ini

@ -322,7 +322,9 @@ class Mythril(object):
print(self.eth_db.contract_hash_to_address(hash)) print(self.eth_db.contract_hash_to_address(hash))
def load_from_bytecode(self, code, bin_runtime=False): def load_from_bytecode(self, code, bin_runtime=False, address=None):
if address is None:
address = util.get_indexed_address(0) address = util.get_indexed_address(0)
if bin_runtime: if bin_runtime:
self.contracts.append( self.contracts.append(

@ -0,0 +1,4 @@
[defaults]
leveldb_dir = /Users/bernhardmueller/Library/Ethereum/geth/chaindata
dynamic_loading = infura
Loading…
Cancel
Save