Add documentation for MythrilConfig and MythrilDisassembler

pull/906/head
Nikhil Parasaram 6 years ago
parent 636f7defaf
commit 666fae8f53
  1. 5
      mythril/mythril/mythril_config.py
  2. 7
      mythril/mythril/mythril_disassembler.py

@ -17,6 +17,11 @@ log = logging.getLogger(__name__)
class MythrilConfig:
"""
The Mythril Analyzer class
Responsible for setup of the mythril environment
"""
def __init__(self):
self.mythril_dir = self._init_mythril_dir()
self.config_path = os.path.join(self.mythril_dir, "config.ini")

@ -19,6 +19,13 @@ log = logging.getLogger(__name__)
class MythrilDisassembler:
"""
The Mythril Disassembler class
Responsible for generating disassembly of smart contracts
- Compiles solc code from file/onchain
- Can also be used to access onchain storage data
"""
def __init__(
self,
eth: Optional[EthJsonRpc] = None,

Loading…
Cancel
Save