diff --git a/docs/source/wiki.rst b/docs/source/wiki.rst new file mode 100644 index 00000000..e69de29b diff --git a/mythril/analysis/modules/deprecated_ops.py b/mythril/analysis/modules/deprecated_ops.py index 9eca59c4..a23b55bd 100644 --- a/mythril/analysis/modules/deprecated_ops.py +++ b/mythril/analysis/modules/deprecated_ops.py @@ -1,6 +1,6 @@ """This module contains the detection code for deprecated op codes.""" from mythril.analysis.report import Issue -from mythril.analysis.swc_data import DEPRICATED_FUNCTIONS_USAGE +from mythril.analysis.swc_data import DEPRECATED_FUNCTIONS_USAGE from mythril.analysis.modules.base import DetectionModule from mythril.laser.ethereum.state.global_state import GlobalState import logging @@ -33,7 +33,7 @@ def _analyze_state(state): node.function_name ) ) - swc_id = DEPRICATED_FUNCTIONS_USAGE + swc_id = DEPRECATED_FUNCTIONS_USAGE elif instruction["opcode"] == "CALLCODE": log.debug("CALLCODE in function " + node.function_name) @@ -44,7 +44,7 @@ def _analyze_state(state): "Due to a bug in the implementation it does not persist sender and value over the call. It was " "therefore deprecated and may be removed in the future. Use the delegatecall method instead." ) - swc_id = DEPRICATED_FUNCTIONS_USAGE + swc_id = DEPRECATED_FUNCTIONS_USAGE issue = Issue( contract=node.contract_name, @@ -68,7 +68,7 @@ class DeprecatedOperationsModule(DetectionModule): """""" super().__init__( name="Deprecated Operations", - swc_id=DEPRICATED_FUNCTIONS_USAGE, + swc_id=DEPRECATED_FUNCTIONS_USAGE, description=DESCRIPTION, entrypoint="callback", pre_hooks=["ORIGIN", "CALLCODE"], diff --git a/mythril/analysis/swc_data.py b/mythril/analysis/swc_data.py index 0462d482..82c51cab 100644 --- a/mythril/analysis/swc_data.py +++ b/mythril/analysis/swc_data.py @@ -11,7 +11,7 @@ REENTRANCY = "107" DEFAULT_STATE_VARIABLE_VISIBILITY = "108" UNINITIALIZED_STORAGE_POINTER = "109" ASSERT_VIOLATION = "110" -DEPRICATED_FUNCTIONS_USAGE = "111" +DEPRECATED_FUNCTIONS_USAGE = "111" DELEGATECALL_TO_UNTRUSTED_CONTRACT = "112" MULTIPLE_SENDS = "113" TX_ORDER_DEPENDENCE = "114"