Skip to content

Commit 916a472

Browse files
authored
Support multiple function names (#1571)
1 parent c3c6739 commit 916a472

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mythril/analysis/report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def resolve_function_names(self):
182182

183183
try:
184184
sig = signatures.get(_hash)
185-
185+
# TODO: Check other mythx tools for dependency before supporting multiple possible function names
186186
if len(sig) > 0:
187187
step["name"] = sig[0]
188188
else:

mythril/disassembler/disassembly.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_function_info(
9797
function_names = signature_database.get(function_hash)
9898

9999
if len(function_names) > 0:
100-
function_name = function_names[0]
100+
function_name = " or ".join(function_names)
101101
else:
102102
function_name = "_function_" + function_hash
103103

0 commit comments

Comments
 (0)