Support multiple function names (#1571)

pull/1573/head
Nikhil Parasaram 3 years ago committed by GitHub
parent c3c6739ace
commit 916a47286c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/analysis/report.py
  2. 2
      mythril/disassembler/disassembly.py

@ -182,7 +182,7 @@ class Issue:
try:
sig = signatures.get(_hash)
# TODO: Check other mythx tools for dependency before supporting multiple possible function names
if len(sig) > 0:
step["name"] = sig[0]
else:

@ -97,7 +97,7 @@ def get_function_info(
function_names = signature_database.get(function_hash)
if len(function_names) > 0:
function_name = function_names[0]
function_name = " or ".join(function_names)
else:
function_name = "_function_" + function_hash

Loading…
Cancel
Save