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: if self._convert_library_to_internal and contract.is_library:
for f in contract.functions_declared: for f in contract.functions_declared:
visibility = "" visibility = ""
if f.visibility == "external": if f.visibility in ["external", "public"]:
visibility = f.visibility
elif f.visibility == "public":
visibility = f.visibility visibility = f.visibility
if visibility != "":
attributes_start = ( attributes_start = (
f.parameters_src().source_mapping["start"] f.parameters_src().source_mapping["start"]
+ f.parameters_src().source_mapping["length"] + f.parameters_src().source_mapping["length"]

Loading…
Cancel
Save