use class variables in dependence on deprecated ops module

pull/1335/head
Joran Honig 5 years ago
parent 16c4c6c134
commit 62c0e8ab27
  1. 17
      mythril/analysis/modules/deprecated_ops.py

@ -4,7 +4,7 @@ from mythril.analysis.potential_issues import (
get_potential_issues_annotation,
)
from mythril.analysis.swc_data import DEPRECATED_FUNCTIONS_USAGE
from mythril.analysis.modules.base import DetectionModule
from mythril.analysis.modules.base import DetectionModule, EntryPoint
from mythril.laser.ethereum.state.global_state import GlobalState
import logging
@ -17,16 +17,11 @@ Check for usage of deprecated opcodes
class DeprecatedOperationsModule(DetectionModule):
"""This module checks for the usage of deprecated op codes."""
def __init__(self):
""""""
super().__init__(
name="Deprecated Operations",
swc_id=DEPRECATED_FUNCTIONS_USAGE,
description=DESCRIPTION,
entrypoint="callback",
pre_hooks=["ORIGIN", "CALLCODE"],
)
name = "Deprecated Operations",
swc_id = DEPRECATED_FUNCTIONS_USAGE,
description = DESCRIPTION,
entry_point = EntryPoint.CALLBACK,
pre_hooks = ["ORIGIN", "CALLCODE"],
def _execute(self, state: GlobalState) -> None:
"""

Loading…
Cancel
Save