From cc476df2a55f7899ce156782e7a81a14d2271de6 Mon Sep 17 00:00:00 2001 From: Joran Honig Date: Wed, 19 Feb 2020 13:28:27 +0100 Subject: [PATCH] retrieve callback modules not post modules --- mythril/analysis/symbolic.py | 2 +- tests/instructions/create2_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py index 6acffd67..55c46cf3 100644 --- a/mythril/analysis/symbolic.py +++ b/mythril/analysis/symbolic.py @@ -145,7 +145,7 @@ class SymExecWrapper: if run_analysis_modules: analysis_modules = ModuleLoader().get_detection_modules( - EntryPoint.POST, modules + EntryPoint.CALLBACK, modules ) self.laser.register_hooks( hook_type="pre", diff --git a/tests/instructions/create2_test.py b/tests/instructions/create2_test.py index eb927f76..30cfc239 100644 --- a/tests/instructions/create2_test.py +++ b/tests/instructions/create2_test.py @@ -24,7 +24,7 @@ def generate_salted_address(code_str, salt, caller): salt = "0" * (64 - len(salt)) + salt contract_address = int( - get_code_hash("0xff" + addr + salt + get_code_hash(code_str)[2:])[26:], 16, + get_code_hash("0xff" + addr + salt + get_code_hash(code_str)[2:])[26:], 16 ) return contract_address