Use eth_db over eth() for config

pull/906/head
Nikhil Parasaram 6 years ago
parent fbeae167ff
commit e86b1c05cc
  1. 2
      mythril/interfaces/cli.py
  2. 3
      mythril/mythril/mythril_config.py

@ -341,7 +341,7 @@ def parse_args(parser, args):
)
if args.search or args.contract_hash_to_address:
leveldb_sercher = MythrilLevelDB(config.leveldb_dir)
leveldb_sercher = MythrilLevelDB(config.eth_db)
if args.search:
# Database search ops
leveldb_sercher.search_db(args.search)

@ -21,6 +21,7 @@ class MythrilConfig(object):
self.config_path = os.path.join(self.mythril_dir, "config.ini")
self.leveldb_dir = self._init_config()
self.eth = None
self.eth_db = None
@staticmethod
def _init_mythril_dir():
@ -148,7 +149,7 @@ class MythrilConfig(object):
def set_api_leveldb(self, leveldb_path):
"""
"""
self.eth = EthLevelDB(leveldb_path)
self.eth_db = EthLevelDB(leveldb_path)
def set_api_rpc_infura(self):
"""Set the RPC mode to INFURA on Mainnet."""

Loading…
Cancel
Save