From 9ec5f11e2340fd1625f7dc937c65e4e3862f076a Mon Sep 17 00:00:00 2001 From: Nikhil Parasaram Date: Thu, 25 Jun 2020 18:50:57 +0530 Subject: [PATCH] Black and plugin fix (#1400) --- mythril/analysis/swc_data.py | 4 ++-- mythril/plugin/loader.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mythril/analysis/swc_data.py b/mythril/analysis/swc_data.py index ca0b6854..15049640 100644 --- a/mythril/analysis/swc_data.py +++ b/mythril/analysis/swc_data.py @@ -29,7 +29,7 @@ INCORRECT_INHERITANCE_ORDER = "125" ARBITRARY_JUMP = "127" DOS_WITH_BLOCK_GAS_LIMIT = "128" TYPOGRAPHICAL_ERROR = "129" -UNEXPECTED_ETHER_BALANCE="132" +UNEXPECTED_ETHER_BALANCE = "132" SWC_TO_TITLE = { "100": "Function Default Visibility", @@ -61,5 +61,5 @@ SWC_TO_TITLE = { "127": "Arbitrary Jump with Function Type Variable", "128": "DoS With Block Gas Limit", "129": "Typographical Error", - "132": "Unexpected Ether Balance" + "132": "Unexpected Ether Balance", } diff --git a/mythril/plugin/loader.py b/mythril/plugin/loader.py index fb332abc..69a6e568 100644 --- a/mythril/plugin/loader.py +++ b/mythril/plugin/loader.py @@ -28,8 +28,8 @@ class MythrilPluginLoader(object, metaclass=Singleton): def __init__(self): log.info("Initializing mythril plugin loader") self.loaded_plugins = [] - self._load_default_enabled() self.plugin_args = dict() # type: Dict[str, Dict] + self._load_default_enabled() def set_args(self, plugin_name: str, **kwargs): self.plugin_args[plugin_name] = kwargs