retrieve callback modules not post modules

pull/1335/head
Joran Honig 5 years ago
parent b821e13594
commit cc476df2a5
  1. 2
      mythril/analysis/symbolic.py
  2. 2
      tests/instructions/create2_test.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",

@ -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

Loading…
Cancel
Save