Update slither/tools/flattening/flattening.py

Co-authored-by: alpharush <0xalpharush@protonmail.com>
pull/1299/head
TheStarBoys 2 years ago committed by GitHub
parent e64de7f7b3
commit c1ed068ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      slither/tools/flattening/flattening.py

@ -151,12 +151,8 @@ class Flattening:
if self._convert_library_to_internal and contract.is_library:
for f in contract.functions_declared:
visibility = ""
if f.visibility == "external":
visibility = f.visibility
elif f.visibility == "public":
if f.visibility in ["external", "public"]:
visibility = f.visibility
if visibility != "":
attributes_start = (
f.parameters_src().source_mapping["start"]
+ f.parameters_src().source_mapping["length"]

Loading…
Cancel
Save